Metadata-Version: 2.4
Name: django-admin-reset
Version: 0.7.2
Summary: Django admin password reset
Author-email: Tibor Hári <hartib@gmail.com>
License-Expression: BSD-3-Clause
Project-URL: Homepage, https://github.com/tiborhari/django-admin-reset/
Project-URL: Repository, https://github.com/tiborhari/django-admin-reset.git
Project-URL: Bug Tracker, https://github.com/tiborhari/django-admin-reset/issues
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Django
Classifier: Framework :: Django :: 4.2
Classifier: Framework :: Django :: 5.0
Classifier: Framework :: Django :: 5.1
Classifier: Framework :: Django :: 5.2
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: <4,>=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: django<6,>4.2
Provides-Extra: testing
Requires-Dist: flake8~=6.0.0; extra == "testing"
Requires-Dist: pytest~=7.3.1; extra == "testing"
Requires-Dist: pytest-cov~=4.1.0; extra == "testing"
Requires-Dist: pytest-django~=4.5.2; extra == "testing"
Requires-Dist: tox~=4.5.2; extra == "testing"
Provides-Extra: docs
Requires-Dist: sphinx~=7.3.7; extra == "docs"
Requires-Dist: sphinx_rtd_theme~=2.0.0; extra == "docs"
Provides-Extra: babel
Requires-Dist: babel~=2.17.0; extra == "babel"
Dynamic: license-file

Password reset for the Django admin interface
=============================================

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.

Installation
------------

The django-admin-reset package can be installed with pip::

   pip install django-admin-reset

Usage
-----

To use this package, add it to ``INSTALLED_APPS``,
in the ``settings.py`` file::

   INSTALLED_APPS = [
       ...
       'django_admin_reset',
       ...
   ]

Validation time
---------------

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.

Compatibility
-------------

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
==============  ========================
