better label on contrib PasswordResetForm to save duplicating with needless instruction

pull/28/head
Dave Cranwell 2014-02-10 12:54:13 +00:00
rodzic b0699350a8
commit 5e381bf819
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -1,3 +1,4 @@
from django.utils.translation import ugettext, ugettext_lazy as _
from django import forms
from django.contrib.auth import get_user_model
from django.contrib.auth.forms import AuthenticationForm, PasswordResetForm
@ -41,6 +42,8 @@ class LoginForm(AuthenticationForm):
class PasswordResetForm(PasswordResetForm):
email = forms.EmailField(label=_("Enter your email address to reset your password"), max_length=254)
def clean(self):
cleaned_data = super(PasswordResetForm, self).clean()

Wyświetl plik

@ -24,7 +24,6 @@
<form method="post" novalidate>
{% csrf_token %}
<h1>Reset your password</h1>
<p>Enter your email address in the box below</p>
<ul class="fields">
<li>