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
commit209a201cd920692b9d7f3f33b42cc56d3bb27a1f (patch)
tree9b6101e1df20be739157df2c8d6f391119bf3e48 /archaeological_context_records/wizards.py
parentc700b1b3d023b62d24015897df66e0bfd7f35893 (diff)
parent1fb316c83fb50b3884c29a44cb95b2383a1a35bd (diff)
downloadIshtar-209a201cd920692b9d7f3f33b42cc56d3bb27a1f.tar.bz2
Ishtar-209a201cd920692b9d7f3f33b42cc56d3bb27a1f.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