diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-09-30 20:19:41 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-09-30 20:19:41 +0200 |
commit | 94c3e67b0c18c2448ed0bf1b9efc00903a0707b1 (patch) | |
tree | 36d69381b619bd72bfd3a0f575c9e47dac8550a2 /archaeological_operations/wizards.py | |
parent | 78a7ae3fabced1cbe9532a444fb207bd21e41e4b (diff) | |
download | Ishtar-94c3e67b0c18c2448ed0bf1b9efc00903a0707b1.tar.bz2 Ishtar-94c3e67b0c18c2448ed0bf1b9efc00903a0707b1.zip |
Flake8
Diffstat (limited to 'archaeological_operations/wizards.py')
-rw-r--r-- | archaeological_operations/wizards.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py index 644bc7390..93787fca2 100644 --- a/archaeological_operations/wizards.py +++ b/archaeological_operations/wizards.py @@ -253,7 +253,7 @@ class OperationWizard(Wizard): for idx, parcel in enumerate(self.get_available_parcels(file)): parcel_pk, parcel_name = parcel post_data["%s-%d-parcel" % (parcel_form_key, idx)] = parcel_pk - post_data[parcel_form_key+'-TOTAL_FORMS'] = idx + 1 + post_data[parcel_form_key + '-TOTAL_FORMS'] = idx + 1 request.POST = post_data return super(OperationWizard, self).post(*args, **kwargs) @@ -447,7 +447,7 @@ def is_preventive(form_name, model, type_key='operation_type', key=''): return False try: typ = request.session[storage.prefix][ - 'step_data'][form_name][form_name+'-'+type_key] + 'step_data'][form_name][form_name + '-' + type_key] if type(typ) in (list, tuple): typ = typ[0] typ = int(typ) @@ -475,7 +475,7 @@ def has_associated_file(form_name, file_key='associated_file', negate=False): return negate try: file_id = request.session[storage.prefix][ - 'step_data'][form_name][form_name+'-'+file_key] + '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) |