Add support for blocking the changing of password for specify users.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-08-26 06:56:48 -04:00
parent c3312d964f
commit 69b80aff1d
12 changed files with 168 additions and 14 deletions

View File

@@ -6,5 +6,7 @@ from django.contrib.auth import get_user_model
class UserForm(forms.ModelForm):
class Meta:
fields = (
'username', 'first_name', 'last_name', 'email', 'is_active',
)
model = get_user_model()
fields = ('username', 'first_name', 'last_name', 'email', 'is_active',)