Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

15764 change vc_position from PositiveSmallInteger to PositiveInteger #15779

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions netbox/dcim/migrations/0187_alter_device_vc_position.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
3 changes: 1 addition & 2 deletions netbox/dcim/models/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Loading