summaryrefslogtreecommitdiff
path: root/archaeological_finds/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-11-28 17:58:55 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-02-19 14:45:56 +0100
commitd0760b4da854e1dadb4ff130468a4c6d185b1abc (patch)
tree464aab890c5d8ea8b51f6ad3558446b3c8018036 /archaeological_finds/wizards.py
parentf10b03c55ece933e4277cdf1e7d4acfba9fdd7ed (diff)
downloadIshtar-d0760b4da854e1dadb4ff130468a4c6d185b1abc.tar.bz2
Ishtar-d0760b4da854e1dadb4ff130468a4c6d185b1abc.zip
✨ exhibition: forms/sheets
Diffstat (limited to 'archaeological_finds/wizards.py')
-rw-r--r--archaeological_finds/wizards.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/archaeological_finds/wizards.py b/archaeological_finds/wizards.py
index c43f65356..dd2e65ff8 100644
--- a/archaeological_finds/wizards.py
+++ b/archaeological_finds/wizards.py
@@ -43,6 +43,9 @@ class FindWizard(Wizard):
model = models.Find
wizard_done_window = reverse_lazy("show-find")
redirect_url = "find_modification"
+ wizard_templates = {
+ "selecrecord-find_creation": "ishtar/wizard/wizard_find_creation.html"
+ }
def get_current_contextrecord(self):
step = self.steps.current
@@ -626,3 +629,13 @@ class FindBasketDeletionWizard(DeletionWizard):
model = models.FindBasket
redirect_url = "find_basket_deletion"
wizard_confirm = "ishtar/wizard/wizard_findbasket_deletion.html"
+
+
+class ExhibitionSearch(SearchWizard):
+ model = models.Exhibition
+ template_name = "ishtar/wizard/exhibition.html"
+
+ def get_context_data(self, form, **kwargs):
+ data = super().get_context_data(form, **kwargs)
+ data["permission_add_exhibition"] = self.request.user.has_perm("ishtar_common.add_exhibition")
+ return data