mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-16 12:38:17 -06:00
models: change unique constraint names
This commit is contained in:
parent
77dc70141e
commit
0b1ba51ae2
@ -1240,7 +1240,7 @@ class FrontPortTemplate(ComponentTemplateModel):
|
||||
),
|
||||
models.UniqueConstraint(
|
||||
fields=['rear_port', 'rear_port_position'],
|
||||
name='frontporttemplate_rearport_rearportpos_key'
|
||||
name='frontporttemplate_rearport_rearportposition_key'
|
||||
)
|
||||
]
|
||||
|
||||
@ -1577,7 +1577,7 @@ class Device(ChangeLoggedModel, ConfigContextModel, CustomFieldModel):
|
||||
),
|
||||
models.UniqueConstraint(
|
||||
fields=['virtual_chassis', 'vc_position'],
|
||||
name='device_virtualchassis_vcpos_key'
|
||||
name='device_virtualchassis_vcposition_key'
|
||||
),
|
||||
]
|
||||
permissions = (
|
||||
@ -2485,7 +2485,7 @@ class FrontPort(CableTermination, ComponentModel):
|
||||
),
|
||||
models.UniqueConstraint(
|
||||
fields=['rear_port', 'rear_port_position'],
|
||||
name='frontport_rearport_rearportpos_key'
|
||||
name='frontport_rearport_rearportposition_key'
|
||||
)
|
||||
]
|
||||
|
||||
|
@ -269,7 +269,7 @@ class CustomFieldValue(models.Model):
|
||||
constraints = [
|
||||
models.UniqueConstraint(
|
||||
fields=['field', 'obj_type', 'obj_id'],
|
||||
name='customfieldvalue_customfield_key'
|
||||
name='customfieldvalue_field_objtype_objid_key'
|
||||
)
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user