diff options
| author | Tim Graham <timograham@gmail.com> | 2017-07-27 08:42:01 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-27 08:42:01 -0400 |
| commit | 14172cf4426de6c867028f1c194011c0a26e662d (patch) | |
| tree | 83b65047f9e2942acdc78fb1152fb469d1fe0771 /docs/ref | |
| parent | 6ebe3a95ea8d436a7f65486d8a6956c7e2175412 (diff) | |
Fixed #28415 -- Clarified what characters ASCII/UnicodeUsernameValidator accept.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/auth.txt | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/ref/contrib/auth.txt b/docs/ref/contrib/auth.txt index 31c8641bb2..b4b407272a 100644 --- a/docs/ref/contrib/auth.txt +++ b/docs/ref/contrib/auth.txt @@ -34,12 +34,12 @@ Fields .. admonition:: Usernames and Unicode - Django originally accepted only ASCII letters in usernames. - Although it wasn't a deliberate choice, Unicode characters have - always been accepted when using Python 3. Django 1.10 officially - added Unicode support in usernames, keeping the ASCII-only behavior - on Python 2, with the option to customize the behavior using - :attr:`.User.username_validator`. + Django originally accepted only ASCII letters and numbers in + usernames. Although it wasn't a deliberate choice, Unicode + characters have always been accepted when using Python 3. Django + 1.10 officially added Unicode support in usernames, keeping the + ASCII-only behavior on Python 2, with the option to customize the + behavior using :attr:`.User.username_validator`. .. attribute:: first_name @@ -395,12 +395,12 @@ Validators .. class:: validators.ASCIIUsernameValidator - A field validator allowing only ASCII letters, in addition to ``@``, ``.``, - ``+``, ``-``, and ``_``. + A field validator allowing only ASCII letters and numbers, in addition to + ``@``, ``.``, ``+``, ``-``, and ``_``. .. class:: validators.UnicodeUsernameValidator - A field validator allowing Unicode letters, in addition to ``@``, ``.``, + A field validator allowing Unicode characters, in addition to ``@``, ``.``, ``+``, ``-``, and ``_``. The default validator for ``User.username``. .. _topics-auth-signals: |
