From 8a62152bf3d61e011af0478b533f15fb25e8ad54 Mon Sep 17 00:00:00 2001 From: Bryan Brancotte <bryan.brancotte@pasteur.fr> Date: Tue, 4 Jan 2022 12:19:22 +0100 Subject: [PATCH] hide password, as there is another way to update the password --- basetheme_bootstrap/forms.py | 4 +++- setup.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/basetheme_bootstrap/forms.py b/basetheme_bootstrap/forms.py index c19d506..e0a5991 100644 --- a/basetheme_bootstrap/forms.py +++ b/basetheme_bootstrap/forms.py @@ -60,9 +60,11 @@ class UserCreationFormWithMore(CleanUsernameAndSuggestReset, auth_forms.UserCrea class MyUserChangeForm(CleanUsernameAndSuggestReset, auth_forms.UserChangeForm): + password = None + class Meta: model = get_user_model() - fields = ("username", "email", "first_name", "last_name", "password") + fields = ("username", "email", "first_name", "last_name") def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) diff --git a/setup.py b/setup.py index 37b5eb7..fa00399 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ readme = open('README.rst').read() setup( name='django-basetheme-bootstrap', - version='0.2.76', + version='0.2.77', description='Django Basetheme Bootstrap', long_description=readme, author='Bryan Brancotte', -- GitLab