Order ObjectType by app_label & model name

This commit is contained in:
Jeremy Stretch 2025-07-29 11:36:16 -04:00
parent 51a63bc7a5
commit 61946e18c6
2 changed files with 2 additions and 0 deletions

View File

@ -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'],

View File

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