#18123: username field capped at 30 characters
------------------------------+---------------------------------
     Reporter:  marqh         |      Owner:  nobody
         Type:  Bug           |     Status:  new
    Component:  contrib.auth  |    Version:  1.4
     Severity:  Normal        |   Keywords:  username max_length
 Triage Stage:  Unreviewed    |  Has patch:  0
Easy pickings:  0             |      UI/UX:  0
------------------------------+---------------------------------
 in Django 1.3 and 1.4:

 django/contrib/auth/models.py

 defines a class:

 class User(models.Model):
     '''...
     '''
     username = models.CharField(_('username'), max_length=30,
 unique=True,help_text=_('Required. 30 characters or fewer. Letters,
 numbers and ''@/./+/-/_ characters'))

     first_name = models.CharField(_('first name'), max_length=30,
 blank=True)

     last_name = models.CharField(_('last name'), max_length=30,
 blank=True)


 I am using kerberos authentication to provide single sign on to my Django
 provided web applications.  I thus obtain a username from the kerberos
 user management system, which has a form:

 givenname.surn...@fullyqualifieddomain.com

 this easily exceeds the 30 character limit, meaning that new users cannot
 be recreated.

 Django appears to forbid the overriding of theses fields (which i tried)
 so my fix involved patching the Django source to enable username to be 100
 characters.

 I would like to see this in change incorporated into the Django release,
 so that I can remove my build patch.  Is there a reason for such a small
 character limit which would make this a bad idea?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18123>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to