[PR #10422] [MERGED] 10348 add decimal custom field #13626

Closed
opened 2025-12-29 23:19:56 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/10422
Author: @arthanson
Created: 9/20/2022
Status: Merged
Merged: 9/30/2022
Merged by: @jeremystretch

Base: featureHead: 10348-decimal-custom-field


📝 Commits (10+)

  • d9a4d46 10348 add decimal custom field
  • 6bb170f 10348 add decimal custom field
  • ac44731 10348 add decimal custom field
  • 6718947 10348 add decimal custom field
  • 64acd5f 10348 add decimal custom field
  • 5a389cd 10348 add decimal custom field
  • cf8ee16 10348 add decimal custom field
  • b23ac30 10348 add decimal custom field
  • 3b156a5 10348 add decimal custom field
  • 298eda1 10348 add decimal custom field

📊 Changes

26 files changed (+343 additions, -207 deletions)

View changed files

📝 docs/customization/custom-fields.md (+1 -0)
📝 netbox/circuits/migrations/0001_squashed.py (+5 -5)
📝 netbox/circuits/migrations/0036_circuit_termination_date_tags_custom_fields.py (+2 -2)
📝 netbox/dcim/migrations/0001_squashed.py (+26 -26)
📝 netbox/dcim/migrations/0146_modules.py (+4 -4)
📝 netbox/dcim/migrations/0147_inventoryitemrole.py (+2 -2)
📝 netbox/extras/api/serializers.py (+2 -0)
📝 netbox/extras/choices.py (+2 -0)
📝 netbox/extras/migrations/0073_journalentry_tags_custom_fields.py (+2 -2)
📝 netbox/extras/models/customfields.py (+37 -13)
📝 netbox/extras/tests/test_customfields.py (+192 -108)
📝 netbox/extras/tests/test_forms.py (+3 -0)
📝 netbox/ipam/migrations/0001_squashed.py (+11 -11)
📝 netbox/ipam/migrations/0050_iprange.py (+2 -2)
📝 netbox/ipam/migrations/0052_fhrpgroup.py (+2 -2)
📝 netbox/ipam/migrations/0053_asn_model.py (+2 -2)
📝 netbox/ipam/migrations/0055_servicetemplate.py (+2 -2)
📝 netbox/ipam/migrations/0059_l2vpn.py (+3 -3)
📝 netbox/netbox/filtersets.py (+2 -1)
📝 netbox/netbox/models/features.py (+2 -2)

...and 6 more files

📄 Description

Fixes: #10348

Adds custom decimal field type and associated tests.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/10422 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 9/20/2022 **Status:** ✅ Merged **Merged:** 9/30/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `10348-decimal-custom-field` --- ### 📝 Commits (10+) - [`d9a4d46`](https://github.com/netbox-community/netbox/commit/d9a4d46046f1fdc8aa22af06dffccafe566103ea) 10348 add decimal custom field - [`6bb170f`](https://github.com/netbox-community/netbox/commit/6bb170f9c4af649d6e933dc13a3ba8b57fbb6021) 10348 add decimal custom field - [`ac44731`](https://github.com/netbox-community/netbox/commit/ac44731684cc250a7c036a282ba675ddc71638d9) 10348 add decimal custom field - [`6718947`](https://github.com/netbox-community/netbox/commit/67189471e726f61eb84af27e92393ba2a0ba8ed2) 10348 add decimal custom field - [`64acd5f`](https://github.com/netbox-community/netbox/commit/64acd5f957af74f36cd9dbcce8f2d8935044f40a) 10348 add decimal custom field - [`5a389cd`](https://github.com/netbox-community/netbox/commit/5a389cde1f2f5c5d31b9e310f4dfb8088fd6be6b) 10348 add decimal custom field - [`cf8ee16`](https://github.com/netbox-community/netbox/commit/cf8ee16ae1eeb981debcbabea177172e6aea7bd7) 10348 add decimal custom field - [`b23ac30`](https://github.com/netbox-community/netbox/commit/b23ac303cd2b47622dff0f906b48177365d1a41e) 10348 add decimal custom field - [`3b156a5`](https://github.com/netbox-community/netbox/commit/3b156a533080492d216e617424026374c0e6ae14) 10348 add decimal custom field - [`298eda1`](https://github.com/netbox-community/netbox/commit/298eda1fa8eaeefa876c137484802c12a734e0a0) 10348 add decimal custom field ### 📊 Changes **26 files changed** (+343 additions, -207 deletions) <details> <summary>View changed files</summary> 📝 `docs/customization/custom-fields.md` (+1 -0) 📝 `netbox/circuits/migrations/0001_squashed.py` (+5 -5) 📝 `netbox/circuits/migrations/0036_circuit_termination_date_tags_custom_fields.py` (+2 -2) 📝 `netbox/dcim/migrations/0001_squashed.py` (+26 -26) 📝 `netbox/dcim/migrations/0146_modules.py` (+4 -4) 📝 `netbox/dcim/migrations/0147_inventoryitemrole.py` (+2 -2) 📝 `netbox/extras/api/serializers.py` (+2 -0) 📝 `netbox/extras/choices.py` (+2 -0) 📝 `netbox/extras/migrations/0073_journalentry_tags_custom_fields.py` (+2 -2) 📝 `netbox/extras/models/customfields.py` (+37 -13) 📝 `netbox/extras/tests/test_customfields.py` (+192 -108) 📝 `netbox/extras/tests/test_forms.py` (+3 -0) 📝 `netbox/ipam/migrations/0001_squashed.py` (+11 -11) 📝 `netbox/ipam/migrations/0050_iprange.py` (+2 -2) 📝 `netbox/ipam/migrations/0052_fhrpgroup.py` (+2 -2) 📝 `netbox/ipam/migrations/0053_asn_model.py` (+2 -2) 📝 `netbox/ipam/migrations/0055_servicetemplate.py` (+2 -2) 📝 `netbox/ipam/migrations/0059_l2vpn.py` (+3 -3) 📝 `netbox/netbox/filtersets.py` (+2 -1) 📝 `netbox/netbox/models/features.py` (+2 -2) _...and 6 more files_ </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WE BE CLOSED AUTOMATICALLY. Specify your assigned issue number on the line below. --> ### Fixes: #10348 <!-- Please include a summary of the proposed changes below. --> Adds custom decimal field type and associated tests. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:19:56 +01:00
adam closed this issue 2025-12-29 23:19:56 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13626