Skip to content

Commit 8c3b7de

Browse files
committed
Change the length of the username field from 30 to 64 characters.
- Legacy-Id: 3444
1 parent 7f8eea3 commit 8c3b7de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

django/contrib/auth/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class User(models.Model):
125125
126126
Username and password are required. Other fields are optional.
127127
"""
128-
username = models.CharField(_('username'), max_length=30, unique=True, help_text=_("Required. 30 characters or fewer. Letters, numbers and @/./+/-/_ characters"))
128+
username = models.CharField(_('username'), max_length=64, unique=True, help_text=_("Required. 30 characters or fewer. Letters, numbers and @/./+/-/_ characters"))
129129
first_name = models.CharField(_('first name'), max_length=30, blank=True)
130130
last_name = models.CharField(_('last name'), max_length=30, blank=True)
131131
email = models.EmailField(_('e-mail address'), blank=True)

0 commit comments

Comments
 (0)