mirror of
https://github.com/netbox-community/netbox.git
synced 2025-09-06 14:23: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={
|
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']),
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user