PEP8 cleanups

This commit is contained in:
Roberto Rosario
2015-06-14 03:52:18 -04:00
parent 37b4f42afe
commit d8322031c5
9 changed files with 7 additions and 36 deletions

View File

@@ -98,23 +98,6 @@ class TextAreaDiv(forms.widgets.Widget):
return mark_safe(result)
# From: http://www.peterbe.com/plog/emailinput-html5-django
class EmailInput(forms.widgets.Input):
"""
Class for a login form widget that accepts only well formated
email address
"""
input_type = 'email'
def render(self, name, value, attrs=None):
if attrs is None:
attrs = {}
attrs.update(dict(autocorrect='off',
autocapitalize='off',
spellcheck='false'))
return super(EmailInput, self).render(name, value, attrs=attrs)
class ScrollableCheckboxSelectMultiple(forms.widgets.CheckboxSelectMultiple):
"""
Class for a form widget composed of a selection of checkboxes wrapped