From d949cd7866446e30ca3c14926358fc91f1535ded Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 28 May 2024 16:27:09 +0200 Subject: ✏️ geo, document form: fix label for "Site" when configuration is checked (refs #5890) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models_common.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ishtar_common/models_common.py') diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index 98c0c6933..f58ff8f09 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -1848,6 +1848,10 @@ class DocumentItem: ), } + @classmethod + def get_label_for_model_plural(cls): + return cls._meta.verbose_name_plural + def documents_list(self) -> list: Document = apps.get_model("ishtar_common", "Document") return self.get_associated_main_item_list("documents", Document) @@ -2936,6 +2940,10 @@ class GeographicItem(models.Model): class Meta: abstract = True + @classmethod + def get_label_for_model_plural(cls): + return cls._meta.verbose_name_plural + def get_add_geo_action(self): return ( reverse("create-pre-geo", args=[ -- cgit v1.2.3