diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-01-16 20:41:28 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-01-16 20:41:28 +0100 |
commit | e27a0ad3ad89f1e990d6f03f1e4486e3b85a5c77 (patch) | |
tree | b78d3d870f2c4657136f6be4eb84b817fcefeb00 /archaeological_warehouse/wizards.py | |
parent | 8803f40c112760b5142c61858d7b854697048a61 (diff) | |
download | Ishtar-e27a0ad3ad89f1e990d6f03f1e4486e3b85a5c77.tar.bz2 Ishtar-e27a0ad3ad89f1e990d6f03f1e4486e3b85a5c77.zip |
Fix container creation (refs #3415)
Diffstat (limited to 'archaeological_warehouse/wizards.py')
-rw-r--r-- | archaeological_warehouse/wizards.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_warehouse/wizards.py b/archaeological_warehouse/wizards.py index 817ed75a5..0adb06f75 100644 --- a/archaeological_warehouse/wizards.py +++ b/archaeological_warehouse/wizards.py @@ -101,7 +101,8 @@ class ContainerWizard(Wizard): for idx, form in enumerate(form_list): if not form.is_valid(): return self.render(form) - container = self.get_current_object() or self.current_object + container = self.get_current_object() or \ + hasattr(self, 'current_object') and self.current_object if container and form.prefix == 'localisation-' + self.url_name: for div_name in form.cleaned_data: try: |