mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-20 04:12:25 -06:00
Closes #6988: Order tenants alphabetically without regard to group assignment
This commit is contained in:
15
netbox/tenancy/migrations/0002_tenant_ordering.py
Normal file
15
netbox/tenancy/migrations/0002_tenant_ordering.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('tenancy', '0001_squashed_0012'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='tenant',
|
||||
options={'ordering': ['name']},
|
||||
),
|
||||
]
|
||||
@@ -83,7 +83,7 @@ class Tenant(PrimaryModel):
|
||||
]
|
||||
|
||||
class Meta:
|
||||
ordering = ['group', 'name']
|
||||
ordering = ['name']
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
Reference in New Issue
Block a user