PEP8 Cleanups
This commit is contained in:
@@ -31,8 +31,12 @@ class DetailForm(forms.ModelForm):
|
||||
else:
|
||||
self.fields[extra_field['field']] = forms.CharField(
|
||||
label=extra_field['label'],
|
||||
initial=escape(return_attrib(self.instance,
|
||||
extra_field['field'], None)),
|
||||
initial=escape(
|
||||
return_attrib(
|
||||
self.instance,
|
||||
extra_field['field'], None
|
||||
)
|
||||
),
|
||||
widget=PlainWidget)
|
||||
|
||||
for field_name, field in self.fields.items():
|
||||
@@ -140,8 +144,8 @@ class EmailAuthenticationForm(forms.Form):
|
||||
"""
|
||||
A form to use email address authentication
|
||||
"""
|
||||
email = forms.CharField(label=_('Email'), max_length=254,
|
||||
widget=EmailInput()
|
||||
email = forms.CharField(
|
||||
label=_('Email'), max_length=254, widget=EmailInput()
|
||||
)
|
||||
password = forms.CharField(label=_('Password'), widget=forms.PasswordInput)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user