I have django project in which I modified Django admin form for editing users , here i have made Password a ReadOnly Field . Thus no one can change user password . But I wants that Staff user can change password . So for that I want to provide a link to Staff users and from that link Staff user can change password of user .
I was wondering if this is possible from Django form (the same model from where I have made the password field readonly) .
My admin form code :
class CustomUserChangeForm(forms.ModelForm):
password = ReadOnlyPasswordHashField()
class Meta:
model = User