[PR #3879] [MERGED] Fixes #3876: Min/max values for ASN field #12676

Closed
opened 2025-12-29 22:22:59 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/3879
Author: @hSaria
Created: 1/9/2020
Status: Merged
Merged: 1/9/2020
Merged by: @jeremystretch

Base: developHead: 3876-asn-field-bounds


📝 Commits (2)

  • 4eacc57 Fixes #3876: set min and max values for ASN field
  • 6c19c88 Replaced ASN bounds with constants

📊 Changes

4 files changed (+16 additions, -4 deletions)

View changed files

📝 docs/release-notes/version-2.6.md (+1 -0)
📝 netbox/dcim/constants.py (+4 -0)
📝 netbox/dcim/fields.py (+9 -2)
📝 netbox/dcim/forms.py (+2 -2)

📄 Description

Fixes: #3876

ASNField inherits from models.BigIntegerField which is defaulting to long numbers in the min and max attributes of the input field.


🔄 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/3879 **Author:** [@hSaria](https://github.com/hSaria) **Created:** 1/9/2020 **Status:** ✅ Merged **Merged:** 1/9/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `3876-asn-field-bounds` --- ### 📝 Commits (2) - [`4eacc57`](https://github.com/netbox-community/netbox/commit/4eacc57522d3bdb4e5e3c23ffca84494c70c00cd) Fixes #3876: set min and max values for ASN field - [`6c19c88`](https://github.com/netbox-community/netbox/commit/6c19c88e99038bae25d9be46b8499960d0ed502a) Replaced ASN bounds with constants ### 📊 Changes **4 files changed** (+16 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/release-notes/version-2.6.md` (+1 -0) 📝 `netbox/dcim/constants.py` (+4 -0) 📝 `netbox/dcim/fields.py` (+9 -2) 📝 `netbox/dcim/forms.py` (+2 -2) </details> ### 📄 Description ### Fixes: #3876 `ASNField` inherits from `models.BigIntegerField` which is defaulting to long numbers in the `min` and `max` attributes of the input field. --- <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 22:22:59 +01:00
adam closed this issue 2025-12-29 22:23:00 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12676