From 8a1686c4c4a4952bfbe2ec6b5a853f9c3630f850 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 17 Mar 2025 17:01:52 +0100 Subject: 🐛 QA forms: fix confirm messages for operation and archaeological sites MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/forms.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ishtar_common/forms.py') diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py index 6a18102df..086f85b90 100644 --- a/ishtar_common/forms.py +++ b/ishtar_common/forms.py @@ -1413,6 +1413,13 @@ class QAForm(CustomForm, ManageOldType): return "" return value + def _get_person(self, value): + try: + value = models.Person.objects.get(pk=value).cached_label + except models.Person.DoesNotExist: + return "" + return value + def save(self, items, user): if not items or not user.ishtaruser: return -- cgit v1.2.3