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(+) (limited to 'ishtar_common/models.py') 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 From e3aafbb55d746c2298a16347a32ecdc85ebe42ea Mon Sep 17 00:00:00 2001 From: Valérie-Emma Leroux Date: Sat, 4 Feb 2017 13:12:15 +0100 Subject: Admin: Ishtar common: label ordering for Format --- ishtar_common/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 12f286c61..5bad7a63c 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2852,6 +2852,7 @@ class Format(GeneralType): class Meta: verbose_name = _(u"Format") verbose_name_plural = _(u"Formats") + ordering = ['label'] post_save.connect(post_save_cache, sender=Format) post_delete.connect(post_save_cache, sender=Format) -- cgit v1.2.3 From b22c070cd149ebd0faa1b3ad8735f44434ea2310 Mon Sep 17 00:00:00 2001 From: Valérie-Emma Leroux Date: Sat, 4 Feb 2017 14:29:29 +0100 Subject: Update labels --- archaeological_context_records/models.py | 4 ++-- ishtar_common/models.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ishtar_common/models.py') diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index ad6c1a378..9714673e6 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -44,8 +44,8 @@ post_delete.connect(post_save_cache, sender=DatingType) class DatingQuality(GeneralType): class Meta: - verbose_name = _(u"Dating quality") - verbose_name_plural = _(u"Dating qualities") + verbose_name = _(u"Dating quality type") + verbose_name_plural = _(u"Dating quality types") ordering = ('label',) post_save.connect(post_save_cache, sender=DatingQuality) post_delete.connect(post_save_cache, sender=DatingQuality) diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 5bad7a63c..15c8fe5da 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2850,8 +2850,8 @@ post_delete.connect(post_save_cache, sender=SupportType) class Format(GeneralType): class Meta: - verbose_name = _(u"Format") - verbose_name_plural = _(u"Formats") + verbose_name = _(u"Format type") + verbose_name_plural = _(u"Format types") ordering = ['label'] post_save.connect(post_save_cache, sender=Format) post_delete.connect(post_save_cache, sender=Format) -- cgit v1.2.3