summaryrefslogtreecommitdiff
path: root/archaeological_operations/views.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2014-12-30 18:08:30 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-05-06 15:38:32 +0200
commit52b1abbc54db98ef848eddf41a3c5c58be2e5b3f (patch)
treeb02128e401468d905459587852d15c6b7216d8d0 /archaeological_operations/views.py
parent6242fd2ed8f2df236375f32374a694d886135e58 (diff)
downloadIshtar-52b1abbc54db98ef848eddf41a3c5c58be2e5b3f.tar.bz2
Ishtar-52b1abbc54db98ef848eddf41a3c5c58be2e5b3f.zip
Add a new action to create an associated operation from a file window
Diffstat (limited to 'archaeological_operations/views.py')
-rw-r--r--archaeological_operations/views.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py
index b4e9d2a2f..25ca61f30 100644
--- a/archaeological_operations/views.py
+++ b/archaeological_operations/views.py
@@ -255,6 +255,14 @@ def operation_modify(request, pk):
return redirect(reverse('operation_modification',
kwargs={'step':'general-operation_modification'}))
+def operation_add(request, file_id):
+ view = operation_creation_wizard(request)
+ OperationWizard.session_set_value(
+ request, 'filechoice-operation_creation', 'associated_file',
+ file_id, reset=True)
+ return redirect(reverse('operation_creation',
+ kwargs={'step':'general-operation_creation'}))
+
operation_closing_wizard = OperationClosingWizard.as_view([
('selec-operation_closing', OperationFormSelection),
('date-operation_closing', ClosingDateFormSelection),