diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-10-28 13:44:04 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-10-28 13:44:04 +0100 |
commit | 5106d06c318114cdc8766b260d78592a511860d8 (patch) | |
tree | 2edc69f087051aa8691d03d9dc2e9e90a04cc065 /archaeological_operations/wizards.py | |
parent | 4910072c29e064ff743ecd8affb7418a735a5e5d (diff) | |
download | Ishtar-5106d06c318114cdc8766b260d78592a511860d8.tar.bz2 Ishtar-5106d06c318114cdc8766b260d78592a511860d8.zip |
Don't validate the form when clicking on previous step (refs #1462, refs #1463)
If a field has been changed a confirmation dialog appear.
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 48f7aeb65..f20999f18 100644 --- a/archaeological_operations/wizards.py +++ b/archaeological_operations/wizards.py @@ -179,12 +179,12 @@ class OperationWizard(Wizard): # add all parcel from available in the archaelogical file if not post_data.get('add_all_parcels'): - return super(Wizard, self).post(*args, **kwargs) + return super(OperationWizard, self).post(*args, **kwargs) general_form_key = 'general-' + self.url_name file_id = self.session_get_value(general_form_key, "associated_file") if not file_id: - return super(Wizard, self).post(*args, **kwargs) + return super(OperationWizard, self).post(*args, **kwargs) parcel_form_key = "parcels-" + self.url_name idx = -1 # remove non relevant deleted keys @@ -196,7 +196,7 @@ class OperationWizard(Wizard): post_data["%s-%d-parcel" % (parcel_form_key, idx)] = parcel_pk post_data[parcel_form_key+'-TOTAL_FORMS'] = idx + 1 request.POST = post_data - return super(Wizard, self).post(*args, **kwargs) + return super(OperationWizard, self).post(*args, **kwargs) class OperationModificationWizard(OperationWizard): modification = True |