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
|
# Create the Cable model
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='Cable',
|
name='Cable',
|
||||||
|
options={'ordering': ['pk']},
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False)),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False)),
|
||||||
('created', models.DateField(auto_now_add=True, null=True)),
|
('created', models.DateField(auto_now_add=True, null=True)),
|
||||||
|
@ -2443,6 +2443,7 @@ class Cable(ChangeLoggedModel):
|
|||||||
]
|
]
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
ordering = ['pk']
|
||||||
unique_together = (
|
unique_together = (
|
||||||
('termination_a_type', 'termination_a_id'),
|
('termination_a_type', 'termination_a_id'),
|
||||||
('termination_b_type', 'termination_b_id'),
|
('termination_b_type', 'termination_b_id'),
|
||||||
|
Loading…
Reference in New Issue
Block a user