This package provides views, to use the built-in Django password reset functionality from inside the admin interface.
Features:
- Add a link to the top of the user change form, that leads to a new page, containing the link for the password reset.
- Remove the features to manually change the users' passwords from the admin
interface (but see note below).
- Remove the change password link from the user forms.
- Remove the password inputs from the user add form.
Note
It's still possible, to manually change the users' passwords by going to
the /admin/auth/user/<uid>/password/ page. Only the links,
pointing to this page are removed.
The django-admin-reset package can be installed with pip:
pip install django-admin-reset
To use this package, add it to INSTALLED_APPS,
in the settings.py file:
INSTALLED_APPS = [
...
'django_admin_reset',
...
]
The password reset links/tokens, generated by this package, are using the built-in
Django password reset functionality, and so respect the
PASSWORD_RESET_TIMEOUT setting.
This package changes the default user admin class, so it may be incompatible with other packages, that are also changing it.
Compatible Django and Python versions:
| Django version | Python versions |
|---|---|
| 4.2 LTS | 3.9, 3.10, 3.11, 3.12 |
| 5.0 | 3.10, 3.11, 3.12 |
| 5.1 | 3.10, 3.11, 3.12 |
| 5.2 LTS | 3.10, 3.11, 3.12 |