Reputation: 330
I am new in Django.
Django version 2.1 has a deleted reset_password()
function.
How should I add an admin page with password reset for the admin account?
Upvotes: 2
Views: 179
Reputation: 904
As of django 2.1, all auth views have become class based views.
You can do password reset in this way
Instead of
path('...'/reset_password)
Use
path('...'/PasswordResetView.as_view(template_name="[path to template]")
This is mentioned in docs
All Auth Views
Password Reset View
Upvotes: 2