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