mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -06:00
Resolved migration discrepancies when dealing with NULL values
This commit is contained in:
parent
4e2863e4ec
commit
180d3d0029
@ -31,4 +31,9 @@ class Migration(migrations.Migration):
|
|||||||
migrations.RunPython(
|
migrations.RunPython(
|
||||||
code=rack_type_to_slug
|
code=rack_type_to_slug
|
||||||
),
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='rack',
|
||||||
|
name='type',
|
||||||
|
field=models.CharField(blank=True, max_length=50),
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
@ -26,7 +26,7 @@ class Migration(migrations.Migration):
|
|||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='rack',
|
model_name='rack',
|
||||||
name='status',
|
name='status',
|
||||||
field=models.CharField(blank=True, default='active', max_length=50),
|
field=models.CharField(default='active', max_length=50),
|
||||||
),
|
),
|
||||||
migrations.RunPython(
|
migrations.RunPython(
|
||||||
code=rack_status_to_slug
|
code=rack_status_to_slug
|
||||||
|
@ -28,4 +28,9 @@ class Migration(migrations.Migration):
|
|||||||
migrations.RunPython(
|
migrations.RunPython(
|
||||||
code=device_face_to_slug
|
code=device_face_to_slug
|
||||||
),
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='device',
|
||||||
|
name='face',
|
||||||
|
field=models.CharField(blank=True, max_length=50),
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
@ -28,4 +28,9 @@ class Migration(migrations.Migration):
|
|||||||
migrations.RunPython(
|
migrations.RunPython(
|
||||||
code=devicetype_subdevicerole_to_slug
|
code=devicetype_subdevicerole_to_slug
|
||||||
),
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='devicetype',
|
||||||
|
name='subdevice_role',
|
||||||
|
field=models.CharField(blank=True, max_length=50),
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
@ -922,6 +922,7 @@ class DeviceType(ChangeLoggedModel, CustomFieldModel):
|
|||||||
subdevice_role = models.CharField(
|
subdevice_role = models.CharField(
|
||||||
max_length=50,
|
max_length=50,
|
||||||
choices=SubdeviceRoleChoices,
|
choices=SubdeviceRoleChoices,
|
||||||
|
blank=True,
|
||||||
verbose_name='Parent/child status',
|
verbose_name='Parent/child status',
|
||||||
help_text='Parent devices house child devices in device bays. Leave blank '
|
help_text='Parent devices house child devices in device bays. Leave blank '
|
||||||
'if this device type is neither a parent nor a child.'
|
'if this device type is neither a parent nor a child.'
|
||||||
|
Loading…
Reference in New Issue
Block a user