summaryrefslogtreecommitdiff
path: root/archaeological_context_records/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-05-15 11:34:32 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-05-15 11:34:32 +0200
commit54d6c8789255aa5500df6dc583a8fdbe96b8442a (patch)
tree9b6101e1df20be739157df2c8d6f391119bf3e48 /archaeological_context_records/wizards.py
parentc3e4c309deb686685e34a441445b6104ba4913a7 (diff)
parentc18fccf766ea9fd82ca82d8e4a7938c83512c416 (diff)
downloadIshtar-54d6c8789255aa5500df6dc583a8fdbe96b8442a.tar.bz2
Ishtar-54d6c8789255aa5500df6dc583a8fdbe96b8442a.zip
Merge branch 'master' into develop
Conflicts: archaeological_finds/forms_treatments.py
Diffstat (limited to 'archaeological_context_records/wizards.py')
-rw-r--r--archaeological_context_records/wizards.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/archaeological_context_records/wizards.py b/archaeological_context_records/wizards.py
index fd48ef3d9..cbeb1c1d2 100644
--- a/archaeological_context_records/wizards.py
+++ b/archaeological_context_records/wizards.py
@@ -134,6 +134,14 @@ class RecordModifWizard(RecordWizard):
model = models.ContextRecord
filter_owns = {'selec-record_modification': ['pk']}
+ def get_form_kwargs(self, step, **kwargs):
+ kwargs = super(RecordModifWizard, self).get_form_kwargs(
+ step, **kwargs)
+ if step != "relations-record_modification":
+ return kwargs
+ kwargs["left_record"] = self.get_current_object()
+ return kwargs
+
class RecordDeletionWizard(DeletionWizard):
model = models.ContextRecord