summaryrefslogtreecommitdiff
path: root/archaeological_finds/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/views.py')
-rw-r--r--archaeological_finds/views.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/archaeological_finds/views.py b/archaeological_finds/views.py
index 7dae92827..870746612 100644
--- a/archaeological_finds/views.py
+++ b/archaeological_finds/views.py
@@ -354,6 +354,26 @@ find_creation_wizard = wizards.FindWizard.as_view(
url_name="find_creation",
)
+
+def find_create(request, pk):
+ find = wizard_is_available(
+ find_creation_wizard,
+ request,
+ models.Find,
+ pk
+ )
+ if not find:
+ return HttpResponseRedirect("/")
+ find_add_wizard(request)
+ if get_current_profile().contextrecord:
+ key = "selecrecord-find_creation"
+ wizards.FindWizard.session_set_value(request, key, "pk", pk, reset=True)
+
+ step = "find-find_creation"
+
+ return redirect(reverse("find-creation", kwargs={"step": step}))
+
+
find_search_condition_dict = {
"general-find_search": check_not_warehouse_module,
"generalwarehouse-find_search": check_warehouse_module,