diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-03-17 17:01:52 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-03-17 19:46:08 +0100 |
commit | 8a1686c4c4a4952bfbe2ec6b5a853f9c3630f850 (patch) | |
tree | 089e0a3de20e35a4ddc89e28af5cdc568bf12c56 /ishtar_common | |
parent | 491c01c6c168c564674c12468077076bf8234af2 (diff) | |
download | Ishtar-8a1686c4c4a4952bfbe2ec6b5a853f9c3630f850.tar.bz2 Ishtar-8a1686c4c4a4952bfbe2ec6b5a853f9c3630f850.zip |
🐛 QA forms: fix confirm messages for operation and archaeological sites
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/forms.py | 7 |
1 files changed, 7 insertions, 0 deletions
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 |