diff options
Diffstat (limited to 'archaeological_operations/wizards.py')
| -rw-r--r-- | archaeological_operations/wizards.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py index 07206cc18..02d462f66 100644 --- a/archaeological_operations/wizards.py +++ b/archaeological_operations/wizards.py @@ -250,7 +250,7 @@ class OperationWizard(Wizard):          post_data = request.POST.copy()          # add all parcel from available in the archaeological file -        if not post_data.get('add_all_parcels'): +        if not post_data.get('add_all_parcels', None):              return super(OperationWizard, self).post(*args, **kwargs)          file = self.get_current_file() @@ -506,7 +506,7 @@ def has_associated_file(form_name, file_key='associated_file', negate=False):                  'step_data'][form_name][form_name + '-' + file_key]              if type(file_id) in (list, tuple):                  file_id = file_id[0] -            file_id = int(file_id) +            int(file_id)              return not negate          except ValueError:              return negate | 
