diff --git a/netbox/extras/migrations/0105_customfield_min_max_values.py b/netbox/extras/migrations/0105_customfield_min_max_values.py new file mode 100644 index 00000000000..bcf3f97bdec --- /dev/null +++ b/netbox/extras/migrations/0105_customfield_min_max_values.py @@ -0,0 +1,23 @@ +# Generated by Django 4.2.8 on 2023-12-27 20:24 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('extras', '0104_stagedchange_remove_change_logging'), + ] + + operations = [ + migrations.AlterField( + model_name='customfield', + name='validation_maximum', + field=models.BigIntegerField(blank=True, null=True), + ), + migrations.AlterField( + model_name='customfield', + name='validation_minimum', + field=models.BigIntegerField(blank=True, null=True), + ), + ] diff --git a/netbox/extras/models/customfields.py b/netbox/extras/models/customfields.py index d667c9a2268..e8bc0fa5dae 100644 --- a/netbox/extras/models/customfields.py +++ b/netbox/extras/models/customfields.py @@ -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'),