From e663f695fb282053b31f69ee2dcbc67ddacb9104 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Wed, 11 Mar 2020 09:47:43 +0100 Subject: Fixed #31359 -- Deprecated get_random_string() calls without an explicit length. --- docs/internals/deprecation.txt | 3 +++ docs/releases/3.1.txt | 3 +++ 2 files changed, 6 insertions(+) (limited to 'docs') diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index c32666fdb7..580301436a 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -61,6 +61,9 @@ details on these changes. * The ``providing_args`` argument for ``django.dispatch.Signal`` will be removed. +* The ``length`` argument for ``django.utils.crypto.get_random_string()`` will + be required. + See the :ref:`Django 3.1 release notes ` for more details on these changes. diff --git a/docs/releases/3.1.txt b/docs/releases/3.1.txt index 8664cf5d10..18b40b3bcc 100644 --- a/docs/releases/3.1.txt +++ b/docs/releases/3.1.txt @@ -554,6 +554,9 @@ Miscellaneous argument as documentation, you can move the text to a code comment or docstring. +* Calling ``django.utils.crypto.get_random_string()`` without a ``length`` + argument is deprecated. + .. _removed-features-3.1: Features removed in 3.1 -- cgit v1.3