summaryrefslogtreecommitdiff
path: root/archaeological_operations/wizards.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/wizards.py')
-rw-r--r--archaeological_operations/wizards.py6
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)