diff options
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: | 
