#29176: Cannot use a custom username field which is not a string
--------------------------------------------+------------------------
               Reporter:  Christophe Mehay  |          Owner:  nobody
                   Type:  Bug               |         Status:  new
              Component:  contrib.auth      |        Version:  2.0
               Severity:  Normal            |       Keywords:
           Triage Stage:  Unreviewed        |      Has patch:  0
    Needs documentation:  0                 |    Needs tests:  0
Patch needs improvement:  0                 |  Easy pickings:  0
                  UI/UX:  0                 |
--------------------------------------------+------------------------
 I use phone_number module for my username field in Auth module and since I
 migrated my project to django2, the classmethod normalize_username tries
 to normalise data which are not a string.

 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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.0d6531d4235fda62ecf230724938b0c4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to