Ticket #10643: formtools_utils.diff
File formtools_utils.diff, 676 bytes (added by , 16 years ago) |
---|
-
django/contrib/formtools/utils.py
15 15 order, pickles the result with the SECRET_KEY setting, then takes an md5 16 16 hash of that. 17 17 """ 18 19 data = [(bf.name, bf.field.clean(bf.data) or '') for bf in form] 18 if form.empty_permitted and not form.has_changed(): 19 data = [(bf.name, bf.data or '') for bf in form] 20 else: 21 data = [(bf.name, bf.field.clean(bf.data) or '') for bf in form] 20 22 data.extend(args) 21 23 data.append(settings.SECRET_KEY) 22 24