mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Refs #21379 -- Normalized unicode username inputs
This commit is contained in:
parent
526575c641
commit
9935f97cd2
6 changed files with 56 additions and 2 deletions
|
@ -726,6 +726,14 @@ utility methods:
|
|||
Normalizes email addresses by lowercasing the domain portion of the
|
||||
email address.
|
||||
|
||||
.. classmethod:: models.BaseUserManager.normalize_username(email)
|
||||
|
||||
.. versionadded:: 1.10
|
||||
|
||||
Applies NFKC Unicode normalization to usernames so that visually
|
||||
identical characters with different Unicode code points are considered
|
||||
identical.
|
||||
|
||||
.. method:: models.BaseUserManager.get_by_natural_key(username)
|
||||
|
||||
Retrieves a user instance using the contents of the field
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue