mirror of
https://github.com/netbox-community/netbox.git
synced 2025-09-06 06:13:36 -06:00
Order ObjectType by app_label & model name
This commit is contained in:
parent
51a63bc7a5
commit
61946e18c6
@ -49,6 +49,7 @@ class Migration(migrations.Migration):
|
||||
options={
|
||||
'verbose_name': 'object type',
|
||||
'verbose_name_plural': 'object types',
|
||||
'ordering': ('app_label', 'model'),
|
||||
'indexes': [
|
||||
django.contrib.postgres.indexes.GinIndex(
|
||||
fields=['features'],
|
||||
|
@ -173,6 +173,7 @@ class ObjectType(ContentType):
|
||||
class Meta:
|
||||
verbose_name = _('object type')
|
||||
verbose_name_plural = _('object types')
|
||||
ordering = ('app_label', 'model')
|
||||
indexes = [
|
||||
GinIndex(fields=['features']),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user