diff options
author | Valérie-Emma Leroux <emma@iggdrasil.net> | 2017-02-03 19:50:27 +0100 |
---|---|---|
committer | Valérie-Emma Leroux <emma@iggdrasil.net> | 2017-02-03 19:50:27 +0100 |
commit | 347c7376988deb005da4a2d6b393f19391969210 (patch) | |
tree | d42b50946c0eb99ebe8a14b71543f42743f50895 /ishtar_common/models.py | |
parent | 3cbc37f908cc17d35de223bcdb509251a70a7114 (diff) | |
download | Ishtar-347c7376988deb005da4a2d6b393f19391969210.tar.bz2 Ishtar-347c7376988deb005da4a2d6b393f19391969210.zip |
Admin: Ishtar common: label ordering for AuthorType and SourceType
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |