From 48907bcf2eb7ec3743e7c59b43b81154d0b417f2 Mon Sep 17 00:00:00 2001 From: Arthur Date: Fri, 19 Apr 2024 09:05:16 -0700 Subject: [PATCH] 15764 change vc_position from PositiveSmallInteger to PositiveInteger --- .../0187_alter_device_vc_position.py | 18 ++++++++++++++++++ netbox/dcim/models/devices.py | 3 +-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 netbox/dcim/migrations/0187_alter_device_vc_position.py diff --git a/netbox/dcim/migrations/0187_alter_device_vc_position.py b/netbox/dcim/migrations/0187_alter_device_vc_position.py new file mode 100644 index 00000000000..d4a42dc2088 --- /dev/null +++ b/netbox/dcim/migrations/0187_alter_device_vc_position.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0.3 on 2024-04-19 16:02 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('dcim', '0186_location_facility'), + ] + + operations = [ + migrations.AlterField( + model_name='device', + name='vc_position', + field=models.PositiveIntegerField(blank=True, null=True), + ), + ] diff --git a/netbox/dcim/models/devices.py b/netbox/dcim/models/devices.py index 10792e387a6..1687298c83b 100644 --- a/netbox/dcim/models/devices.py +++ b/netbox/dcim/models/devices.py @@ -689,11 +689,10 @@ class Device( blank=True, null=True ) - vc_position = models.PositiveSmallIntegerField( + vc_position = models.PositiveIntegerField( verbose_name=_('VC position'), blank=True, null=True, - validators=[MaxValueValidator(255)], help_text=_('Virtual chassis position') ) vc_priority = models.PositiveSmallIntegerField(