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 --- archaeological_operations/models.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'archaeological_operations') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 9d1a54d7d..13be0727b 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -575,6 +575,10 @@ class ArchaeologicalSite( GinIndex(fields=["data"]), ] + @classmethod + def get_label_for_model_plural(cls): + return get_current_profile().get_site_label("plural") + def __str__(self): return self.cached_label or "" -- cgit v1.2.3