-class LoginForm(AuthenticationForm):
- email = forms.CharField(widget=forms.TextInput(attrs={'autofocus': 'autofocus',
- 'max_length': '255'}))
- password = forms.CharField(widget=forms.PasswordInput)
+class LoginForm(forms.Form):
+ username = forms.CharField(widget=forms.TextInput(attrs={'autofocus': 'autofocus',
+ 'max_length': '255'}),
+ label=_('Username'))
+ password = forms.CharField(widget=forms.PasswordInput(), label=_('Password'))