summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValérie-Emma Leroux <valerie-emma.leroux@iggdrasil.net>2017-02-03 19:50:27 +0100
committerValérie-Emma Leroux <valerie-emma.leroux@iggdrasil.net>2017-02-03 19:50:27 +0100
commit4703a5d89fd760ca2c75f1fa55d63a024e939337 (patch)
treed42b50946c0eb99ebe8a14b71543f42743f50895
parent78d4acd7bcd659288bb3d2e1d6b1ee7cb93b61b4 (diff)
downloadIshtar-4703a5d89fd760ca2c75f1fa55d63a024e939337.tar.bz2
Ishtar-4703a5d89fd760ca2c75f1fa55d63a024e939337.zip
Admin: Ishtar common: label ordering for AuthorType and SourceType
-rw-r--r--ishtar_common/models.py2
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)