PEP8 cleanups

This commit is contained in:
Roberto Rosario
2011-04-08 01:31:39 -04:00
parent 61fb876a81
commit 1b6806f7d1
13 changed files with 173 additions and 167 deletions
+2 -2
View File
@@ -13,6 +13,7 @@ from django.utils.hashcompat import md5_constructor
__all__ = ('security_hash', 'BoundFormWizard')
def security_hash(request, form, exclude=None, *args):
"""Calculates a security hash for the given Form/FormSet instance.
@@ -48,6 +49,7 @@ def security_hash(request, form, exclude=None, *args):
return md5_constructor(pickled).hexdigest()
class BoundFormWizard(FormWizard):
"""Render prev_fields as a list of bound form fields in the template
context rather than raw html."""
@@ -78,5 +80,3 @@ class BoundFormWizard(FormWizard):
bf = BoundField(forms.Form(), hash_field, hash_name)
prev_fields.append(bf)
return self.render_template(request, form, prev_fields, step, context)
# vim: ai ts=4 sts=4 et sw=4