Ticket #10034: formwizard_10034.diff
File formwizard_10034.diff, 493 bytes (added by , 16 years ago) |
---|
-
django/contrib/formtools/utils.py
diff --git a/django/contrib/formtools/utils.py b/django/contrib/formtools/utils.py index a357255..0c56859 100644
a b def security_hash(request, form, *args): 16 16 hash of that. 17 17 """ 18 18 19 data = [(bf.name, bf.field.clean(bf.data) or '') for bf in form]19 data = [(bf.name, bf.field.clean(bf.data).strip() or '') for bf in form] 20 20 data.extend(args) 21 21 data.append(settings.SECRET_KEY) 22 22