1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #31375 -- Made contrib.auth.hashers.make_password() accept only bytes or strings.

This commit is contained in:
Hasan Ramezani
2020-03-26 13:23:32 +01:00
committed by Mariusz Felisiak
parent b3ab92cc5a
commit 8aa71f4e87
4 changed files with 24 additions and 6 deletions

View File

@@ -603,6 +603,10 @@ Miscellaneous
* The admin CSS classes ``row1`` and ``row2`` are removed in favor of
``:nth-child(odd)`` and ``:nth-child(even)`` pseudo-classes.
* The :func:`~django.contrib.auth.hashers.make_password` now requires its
argument to be a string or bytes. Other types should be explicitly cast to
one of these.
.. _deprecated-features-3.1:
Features deprecated in 3.1