1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #6988: Order tenants alphabetically without regard to group assignment

This commit is contained in:
jeremystretch
2021-09-15 14:56:20 -04:00
parent 25f501fb12
commit e738ff2fa7
3 changed files with 17 additions and 1 deletions

View File

@ -5,6 +5,7 @@
### Enhancements ### Enhancements
* [#6387](https://github.com/netbox-community/netbox/issues/6387) - Add xDSL interface type * [#6387](https://github.com/netbox-community/netbox/issues/6387) - Add xDSL interface type
* [#6988](https://github.com/netbox-community/netbox/issues/6988) - Order tenants alphabetically without regard to group assignment
* [#7032](https://github.com/netbox-community/netbox/issues/7032) - Add URM port types * [#7032](https://github.com/netbox-community/netbox/issues/7032) - Add URM port types
* [#7239](https://github.com/netbox-community/netbox/issues/7239) - Redirect global search to filtered object list when an object type is selected * [#7239](https://github.com/netbox-community/netbox/issues/7239) - Redirect global search to filtered object list when an object type is selected

View 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']},
),
]

View File

@ -83,7 +83,7 @@ class Tenant(PrimaryModel):
] ]
class Meta: class Meta:
ordering = ['group', 'name'] ordering = ['name']
def __str__(self): def __str__(self):
return self.name return self.name