1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #14240: Increase min/max validation values for custom fields

This commit is contained in:
Jeremy Stretch
2023-12-27 15:28:40 -05:00
parent 00807d1e52
commit 4eadc8cfe4
2 changed files with 25 additions and 2 deletions

View File

@ -156,13 +156,13 @@ class CustomField(CloningMixin, ExportTemplatesMixin, ChangeLoggedModel):
verbose_name=_('display weight'),
help_text=_('Fields with higher weights appear lower in a form.')
)
validation_minimum = models.IntegerField(
validation_minimum = models.BigIntegerField(
blank=True,
null=True,
verbose_name=_('minimum value'),
help_text=_('Minimum allowed value (for numeric fields)')
)
validation_maximum = models.IntegerField(
validation_maximum = models.BigIntegerField(
blank=True,
null=True,
verbose_name=_('maximum value'),