mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Invert default priority ordering for FHRPGroupAssignment
This commit is contained in:
@ -51,7 +51,7 @@ class Migration(migrations.Migration):
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'FHRP group assignment',
|
||||
'ordering': ('priority', 'pk'),
|
||||
'ordering': ('-priority', 'pk'),
|
||||
'unique_together': {('interface_type', 'interface_id', 'group')},
|
||||
},
|
||||
),
|
||||
|
@ -92,7 +92,7 @@ class FHRPGroupAssignment(ChangeLoggedModel):
|
||||
objects = RestrictedQuerySet.as_manager()
|
||||
|
||||
class Meta:
|
||||
ordering = ('priority', 'pk')
|
||||
ordering = ('-priority', 'pk')
|
||||
unique_together = ('interface_type', 'interface_id', 'group')
|
||||
verbose_name = 'FHRP group assignment'
|
||||
|
||||
|
Reference in New Issue
Block a user