mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -06:00
Normalize ordering of cables by PK
This commit is contained in:
parent
cefec1be60
commit
cf9c8f35a0
@ -135,6 +135,7 @@ class Migration(migrations.Migration):
|
||||
# Create the Cable model
|
||||
migrations.CreateModel(
|
||||
name='Cable',
|
||||
options={'ordering': ['pk']},
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False)),
|
||||
('created', models.DateField(auto_now_add=True, null=True)),
|
||||
|
@ -2443,6 +2443,7 @@ class Cable(ChangeLoggedModel):
|
||||
]
|
||||
|
||||
class Meta:
|
||||
ordering = ['pk']
|
||||
unique_together = (
|
||||
('termination_a_type', 'termination_a_id'),
|
||||
('termination_b_type', 'termination_b_id'),
|
||||
|
Loading…
Reference in New Issue
Block a user