From 00e187961059a0e77403151d2bb38c217101d5af Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Mon, 11 Sep 2023 21:57:31 +0200 Subject: Refs #33764 -- Removed BaseUserManager.make_random_password() per deprecation timeline. --- docs/releases/5.1.txt | 2 +- docs/topics/auth/customizing.txt | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) (limited to 'docs') diff --git a/docs/releases/5.1.txt b/docs/releases/5.1.txt index c6d17cc3c7..4560e1fabf 100644 --- a/docs/releases/5.1.txt +++ b/docs/releases/5.1.txt @@ -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. diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt index bd0c074273..52fa3515b8 100644 --- a/docs/topics/auth/customizing.txt +++ b/docs/topics/auth/customizing.txt @@ -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`` ----------------------------------- -- cgit v1.3