forms.py 438 Bytes
Newer Older
1
import django.contrib.auth.forms
2 3
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from django.utils.translation import ugettext, ugettext_lazy as _
4 5 6 7 8 9 10

from .models import User

class UserChangeForm(django.contrib.auth.forms.UserChangeForm):

    class Meta:
        model = User
fred's avatar
fred committed
11
        fields = '__all__'
12

13 14
    password = ReadOnlyPasswordHashField(label=_("Password"),
            help_text='<a href="password/">change</a>')