summaryrefslogtreecommitdiff
path: root/archaeological_operations/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-04-07 12:22:27 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-04-07 12:22:27 +0200
commit93364489ab4e6daf16f924b2d8212f7fcdc5e477 (patch)
treee0686c289c399330f414b50ff8ef58f642833db2 /archaeological_operations/wizards.py
parentc788bef47de6bca5dda5dd1fa67dd6a2ac02e9b9 (diff)
parenta8271676a0598594762cc53e4f577337eb275313 (diff)
downloadIshtar-93364489ab4e6daf16f924b2d8212f7fcdc5e477.tar.bz2
Ishtar-93364489ab4e6daf16f924b2d8212f7fcdc5e477.zip
Merge branch 'v0.9' into wheezy
Diffstat (limited to 'archaeological_operations/wizards.py')
-rw-r--r--archaeological_operations/wizards.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py
index 5410b37f8..c132c24be 100644
--- a/archaeological_operations/wizards.py
+++ b/archaeological_operations/wizards.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (C) 2012-2016 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
+# Copyright (C) 2012-2017 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@@ -275,6 +275,15 @@ class OperationModificationWizard(OperationWizard):
modification = True
filter_owns = {'selec-operation_modification': ['pk']}
+ def get_form_kwargs(self, step, **kwargs):
+ kwargs = super(OperationModificationWizard, self).get_form_kwargs(
+ step, **kwargs)
+ print(step)
+ if step != "relations-operation_modification":
+ return kwargs
+ kwargs["left_record"] = self.get_current_object()
+ return kwargs
+
class OperationClosingWizard(ClosingWizard):
model = models.Operation