mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -06:00
12552 fix name order for region
This commit is contained in:
parent
90d67067ab
commit
49c2ac4b5c
@ -134,6 +134,10 @@ class Migration(migrations.Migration):
|
||||
to='dcim.region',
|
||||
),
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name='region',
|
||||
options={'ordering': ('name',)},
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='sitegroup',
|
||||
name='parent',
|
||||
|
@ -40,6 +40,7 @@ class Region(NestedGroupModel):
|
||||
)
|
||||
|
||||
class Meta:
|
||||
ordering = ('name',)
|
||||
constraints = (
|
||||
models.UniqueConstraint(
|
||||
fields=('parent', 'name'),
|
||||
|
Loading…
Reference in New Issue
Block a user