mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 01:06:11 -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',
|
to='dcim.region',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
migrations.AlterModelOptions(
|
||||||
|
name='region',
|
||||||
|
options={'ordering': ('name',)},
|
||||||
|
),
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='sitegroup',
|
model_name='sitegroup',
|
||||||
name='parent',
|
name='parent',
|
||||||
|
@ -40,6 +40,7 @@ class Region(NestedGroupModel):
|
|||||||
)
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
ordering = ('name',)
|
||||||
constraints = (
|
constraints = (
|
||||||
models.UniqueConstraint(
|
models.UniqueConstraint(
|
||||||
fields=('parent', 'name'),
|
fields=('parent', 'name'),
|
||||||
|
Loading…
Reference in New Issue
Block a user