A simple patch would be to check username type in this method and
normalize only if the type is a string.
--
Ticket URL: <https://code.djangoproject.com/ticket/29176>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
* stage: Unreviewed => Accepted
* needs_tests: 0 => 1
Comment:
[https://github.com/django/django/pull/9740 PR] (needs a test)
--
Ticket URL: <https://code.djangoproject.com/ticket/29176#comment:1>
Comment (by Tim Graham <timograham@…>):
In [changeset:"e91ff6e29cfd916afd3620adf4aeab733e06dbb5" e91ff6e]:
{{{
#!CommitTicketReference repository=""
revision="e91ff6e29cfd916afd3620adf4aeab733e06dbb5"
[2.0.x] Fixed #29176 -- Fixed AbstractBaseUser.normalize_username() crash
if username isn't a string.
Backport of 40bac28faabbacd0875e59455cd80fb1dbb16966 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29176#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"40bac28faabbacd0875e59455cd80fb1dbb16966" 40bac28f]:
{{{
#!CommitTicketReference repository=""
revision="40bac28faabbacd0875e59455cd80fb1dbb16966"
Fixed #29176 -- Fixed AbstractBaseUser.normalize_username() crash if
username isn't a string.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29176#comment:2>