summaryrefslogtreecommitdiff
path: root/archaeological_finds/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-04-13 13:23:35 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-04-13 13:23:35 +0200
commitae9366fc3f24d869fa9cce7c0077d06e6db95571 (patch)
tree71d968e3d0b0571b4c1d1bef036774f30e98dbcf /archaeological_finds/wizards.py
parentb790e4875b47e2951a65eedd36dc661079667541 (diff)
downloadIshtar-ae9366fc3f24d869fa9cce7c0077d06e6db95571.tar.bz2
Ishtar-ae9366fc3f24d869fa9cce7c0077d06e6db95571.zip
New type of operation: court-ordered seizure with associated fields (refs #4048)
* models * migrations * wizard panel * forms * sheet
Diffstat (limited to 'archaeological_finds/wizards.py')
-rw-r--r--archaeological_finds/wizards.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/archaeological_finds/wizards.py b/archaeological_finds/wizards.py
index b4471a80b..b244118cd 100644
--- a/archaeological_finds/wizards.py
+++ b/archaeological_finds/wizards.py
@@ -51,6 +51,13 @@ class FindWizard(Wizard):
if base_finds:
return base_finds[0].context_record
+ def get_form_kwargs(self, step=None):
+ kwargs = super(FindWizard, self).get_form_kwargs(step)
+ if step not in ('find-find_creation', 'find-find_modification'):
+ return kwargs
+ kwargs['context_record'] = self.get_current_contextrecord()
+ return kwargs
+
def get_context_data(self, form, **kwargs):
"""
Get the operation and context record "reminder" on top of wizard forms