mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 03:56:53 -06:00
Annotate all migration operation lists
This commit is contained in:
parent
5d772d7055
commit
edbf562803
@ -25,6 +25,8 @@ class Migration(migrations.Migration):
|
||||
]
|
||||
|
||||
operations = [
|
||||
|
||||
# Circuit.status
|
||||
migrations.AlterField(
|
||||
model_name='circuit',
|
||||
name='status',
|
||||
@ -33,4 +35,5 @@ class Migration(migrations.Migration):
|
||||
migrations.RunPython(
|
||||
code=circuit_status_to_slug
|
||||
),
|
||||
|
||||
]
|
||||
|
@ -21,6 +21,8 @@ class Migration(migrations.Migration):
|
||||
]
|
||||
|
||||
operations = [
|
||||
|
||||
# Site.status
|
||||
migrations.AlterField(
|
||||
model_name='site',
|
||||
name='status',
|
||||
@ -29,4 +31,5 @@ class Migration(migrations.Migration):
|
||||
migrations.RunPython(
|
||||
code=site_status_to_slug
|
||||
),
|
||||
|
||||
]
|
||||
|
@ -88,4 +88,5 @@ class Migration(migrations.Migration):
|
||||
name='outer_unit',
|
||||
field=models.CharField(blank=True, max_length=50),
|
||||
),
|
||||
|
||||
]
|
||||
|
@ -20,6 +20,8 @@ class Migration(migrations.Migration):
|
||||
]
|
||||
|
||||
operations = [
|
||||
|
||||
# DeviceType.subdevice_role
|
||||
migrations.AlterField(
|
||||
model_name='devicetype',
|
||||
name='subdevice_role',
|
||||
@ -33,4 +35,5 @@ class Migration(migrations.Migration):
|
||||
name='subdevice_role',
|
||||
field=models.CharField(blank=True, max_length=50),
|
||||
),
|
||||
|
||||
]
|
||||
|
@ -108,6 +108,8 @@ class Migration(migrations.Migration):
|
||||
]
|
||||
|
||||
operations = [
|
||||
|
||||
# InterfaceTemplate.type
|
||||
migrations.AlterField(
|
||||
model_name='interfacetemplate',
|
||||
name='type',
|
||||
@ -116,6 +118,8 @@ class Migration(migrations.Migration):
|
||||
migrations.RunPython(
|
||||
code=interfacetemplate_type_to_slug
|
||||
),
|
||||
|
||||
# Interface.type
|
||||
migrations.AlterField(
|
||||
model_name='interface',
|
||||
name='type',
|
||||
@ -124,6 +128,8 @@ class Migration(migrations.Migration):
|
||||
migrations.RunPython(
|
||||
code=interface_type_to_slug
|
||||
),
|
||||
|
||||
# Interface.mode
|
||||
migrations.AlterField(
|
||||
model_name='interface',
|
||||
name='mode',
|
||||
@ -137,4 +143,5 @@ class Migration(migrations.Migration):
|
||||
name='mode',
|
||||
field=models.CharField(blank=True, max_length=50),
|
||||
),
|
||||
|
||||
]
|
||||
|
@ -50,6 +50,8 @@ class Migration(migrations.Migration):
|
||||
]
|
||||
|
||||
operations = [
|
||||
|
||||
# FrontPortTemplate.type
|
||||
migrations.AlterField(
|
||||
model_name='frontporttemplate',
|
||||
name='type',
|
||||
@ -58,6 +60,8 @@ class Migration(migrations.Migration):
|
||||
migrations.RunPython(
|
||||
code=frontporttemplate_type_to_slug
|
||||
),
|
||||
|
||||
# RearPortTemplate.type
|
||||
migrations.AlterField(
|
||||
model_name='rearporttemplate',
|
||||
name='type',
|
||||
@ -66,6 +70,8 @@ class Migration(migrations.Migration):
|
||||
migrations.RunPython(
|
||||
code=rearporttemplate_type_to_slug
|
||||
),
|
||||
|
||||
# FrontPort.type
|
||||
migrations.AlterField(
|
||||
model_name='frontport',
|
||||
name='type',
|
||||
@ -74,6 +80,8 @@ class Migration(migrations.Migration):
|
||||
migrations.RunPython(
|
||||
code=frontport_type_to_slug
|
||||
),
|
||||
|
||||
# RearPort.type
|
||||
migrations.AlterField(
|
||||
model_name='rearport',
|
||||
name='type',
|
||||
|
@ -23,6 +23,8 @@ class Migration(migrations.Migration):
|
||||
]
|
||||
|
||||
operations = [
|
||||
|
||||
# Prefix.status
|
||||
migrations.AlterField(
|
||||
model_name='prefix',
|
||||
name='status',
|
||||
@ -31,4 +33,5 @@ class Migration(migrations.Migration):
|
||||
migrations.RunPython(
|
||||
code=prefix_status_to_slug
|
||||
),
|
||||
|
||||
]
|
||||
|
@ -22,6 +22,8 @@ class Migration(migrations.Migration):
|
||||
]
|
||||
|
||||
operations = [
|
||||
|
||||
# VirtualMachine.status
|
||||
migrations.AlterField(
|
||||
model_name='virtualmachine',
|
||||
name='status',
|
||||
@ -30,4 +32,5 @@ class Migration(migrations.Migration):
|
||||
migrations.RunPython(
|
||||
code=virtualmachine_status_to_slug
|
||||
),
|
||||
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user