From 347c7376988deb005da4a2d6b393f19391969210 Mon Sep 17 00:00:00 2001 From: Valérie-Emma Leroux Date: Fri, 3 Feb 2017 19:50:27 +0100 Subject: Admin: Ishtar common: label ordering for AuthorType and SourceType --- ishtar_common/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 723125149..12f286c61 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2802,6 +2802,7 @@ class AuthorType(GeneralType): class Meta: verbose_name = _(u"Author type") verbose_name_plural = _(u"Author types") + ordering = ['label'] post_save.connect(post_save_cache, sender=AuthorType) post_delete.connect(post_save_cache, sender=AuthorType) @@ -2834,6 +2835,7 @@ class SourceType(GeneralType): class Meta: verbose_name = _(u"Source type") verbose_name_plural = _(u"Source types") + ordering = ['label'] post_save.connect(post_save_cache, sender=SourceType) post_delete.connect(post_save_cache, sender=SourceType) -- cgit v1.2.3