mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
15764 change vc_position from PositiveSmallInteger to PositiveInteger
This commit is contained in:
18
netbox/dcim/migrations/0187_alter_device_vc_position.py
Normal file
18
netbox/dcim/migrations/0187_alter_device_vc_position.py
Normal 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),
|
||||||
|
),
|
||||||
|
]
|
@ -689,11 +689,10 @@ class Device(
|
|||||||
blank=True,
|
blank=True,
|
||||||
null=True
|
null=True
|
||||||
)
|
)
|
||||||
vc_position = models.PositiveSmallIntegerField(
|
vc_position = models.PositiveIntegerField(
|
||||||
verbose_name=_('VC position'),
|
verbose_name=_('VC position'),
|
||||||
blank=True,
|
blank=True,
|
||||||
null=True,
|
null=True,
|
||||||
validators=[MaxValueValidator(255)],
|
|
||||||
help_text=_('Virtual chassis position')
|
help_text=_('Virtual chassis position')
|
||||||
)
|
)
|
||||||
vc_priority = models.PositiveSmallIntegerField(
|
vc_priority = models.PositiveSmallIntegerField(
|
||||||
|
Reference in New Issue
Block a user