Integer Custom Field shows maximum value when minimum value fails validation #17611
Labels
severity: low
Does not significantly disrupt application functionality, or a workaround is available
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Deployment Type
Self-hosted
NetBox Version
version-agnostic, seeing it on latest and develop
Python Version
3.11
Steps to Reproduce
The above example is via pynetbox, but it doesn't matter, the Exception Message would be the same in all cases.
Expected Behavior
ValidationError's message should be
Invalid value for custom field 'example': Value must be at least 2"
Observed Behavior
Instead, the exception message reports the
validation_maximum
instead of thevalidation_minimum
. It's a tiny typo in the CustomField model validation code, latest develop:netbox/netbox/extras/models/customfields.py
Lines 662 to 664 in 8539686
The text was updated successfully, but these errors were encountered: