summaryrefslogtreecommitdiff
path: root/archaeological_context_records/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-05-16 12:27:34 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-05-16 12:27:34 +0200
commit8d9998014f3d7591f073dea645e3eee40b4917e6 (patch)
tree6bb5b6aa22d1720b8eb2dc26766dcad9dda1544d /archaeological_context_records/wizards.py
parentdfd6fd2551a9cc54e6b69d4f5d4d4aa328b9cc7a (diff)
parenta25d54c314692843a0086f6c7f9d38c30affce40 (diff)
downloadIshtar-8d9998014f3d7591f073dea645e3eee40b4917e6.tar.bz2
Ishtar-8d9998014f3d7591f073dea645e3eee40b4917e6.zip
Merge branch 'master' into v0.9
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