1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #33764 -- Removed BaseUserManager.make_random_password() per deprecation timeline.

This commit is contained in:
Mariusz Felisiak
2023-09-11 21:57:31 +02:00
parent 295467c04a
commit 00e1879610
4 changed files with 2 additions and 49 deletions

View File

@@ -251,4 +251,4 @@ in Django 5.1.
See :ref:`deprecated-features-4.2` for details on these changes, including how
to remove usage of these features.
* ...
* The ``BaseUserManager.make_random_password()`` method is removed.

View File

@@ -799,19 +799,6 @@ utility methods:
Retrieves a user instance using the contents of the field
nominated by ``USERNAME_FIELD``.
.. method:: models.BaseUserManager.make_random_password(length=10, allowed_chars='abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789')
.. deprecated:: 4.2
Returns a random password with the given length and given string of
allowed characters. Note that the default value of ``allowed_chars``
doesn't contain letters that can cause user confusion, including:
* ``i``, ``l``, ``I``, and ``1`` (lowercase letter i, lowercase
letter L, uppercase letter i, and the number one)
* ``o``, ``O``, and ``0`` (lowercase letter o, uppercase letter o,
and zero)
Extending Django's default ``User``
-----------------------------------