diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-11-19 11:58:15 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-02-19 14:45:56 +0100 |
commit | e7dfaffc372292d8467da8a8be872e9ac9456618 (patch) | |
tree | 0cac7d0f5fcaf03d07062fc35a18a43b0aaa7cae /archaeological_finds/wizards.py | |
parent | 225f4356ca145d7f634aa8050d936de2dbd1cfec (diff) | |
download | Ishtar-e7dfaffc372292d8467da8a8be872e9ac9456618.tar.bz2 Ishtar-e7dfaffc372292d8467da8a8be872e9ac9456618.zip |
✨ base exhibition views
Diffstat (limited to 'archaeological_finds/wizards.py')
-rw-r--r-- | archaeological_finds/wizards.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/archaeological_finds/wizards.py b/archaeological_finds/wizards.py index f1d4a2dc4..c43f65356 100644 --- a/archaeological_finds/wizards.py +++ b/archaeological_finds/wizards.py @@ -524,6 +524,13 @@ class TreatmentFileWizard(Wizard): wizard_done_window = reverse_lazy("show-treatmentfile") redirect_url = "treatmentfile_modification" + def get_formated_data_for_associated_basket_id(self, value): + try: + value = str(models.FindBasket.objects.get(pk=value)) + except models.FindBasket.DoesNotExist: + value = "" + return value + class TreatmentFileModificationWizard(TreatmentFileWizard): modification = True |