diff --git a/netbox/core/migrations/0017_concrete_objecttype.py b/netbox/core/migrations/0017_concrete_objecttype.py index 9c7d4e999..899a1d2e8 100644 --- a/netbox/core/migrations/0017_concrete_objecttype.py +++ b/netbox/core/migrations/0017_concrete_objecttype.py @@ -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'], diff --git a/netbox/core/models/object_types.py b/netbox/core/models/object_types.py index 6a0fe28b5..e8a4f7202 100644 --- a/netbox/core/models/object_types.py +++ b/netbox/core/models/object_types.py @@ -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']), ]