15764 change vc_position from PositiveSmallInteger to PositiveInteger

This commit is contained in:
Arthur 2024-04-19 09:05:16 -07:00 committed by Jeremy Stretch
parent 174865b9aa
commit 4b83b5d0e1
2 changed files with 19 additions and 2 deletions

View File

@ -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),
),
]

View File

@ -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(