diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2010-03-01 19:49:05 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2010-03-01 19:49:05 +0000 |
| commit | c8015052d935a99a5c8f96434b2d0cd16d8a4e14 (patch) | |
| tree | 19c5154c8e84cfafa0781d11fd0b8a187648fd43 /django/contrib/auth/models.py | |
| parent | 647651698fb84d864f911db15503f77acdd0cbf0 (diff) | |
Fixed #5786: relaxed the validation for usernames to allow more common characters '@', etc.
This is really just a stop-gap until we come up with a improved way of handling
disparate auth data, but it should help us stretch a bit more milage out of the
current system.
Thanks to alextreme, lbruno, and clayg.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12634 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib/auth/models.py')
| -rw-r--r-- | django/contrib/auth/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py index 3bfd98270d..0be8875412 100644 --- a/django/contrib/auth/models.py +++ b/django/contrib/auth/models.py @@ -177,7 +177,7 @@ class User(models.Model): Username and password are required. Other fields are optional. """ - username = models.CharField(_('username'), max_length=30, unique=True, help_text=_("Required. 30 characters or fewer. Alphanumeric characters only (letters, digits and underscores).")) + 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) email = models.EmailField(_('e-mail address'), blank=True) |
