Commits

Matthew Schinckel committed 14d52f5

Allow spaces in username.

  • Participants
  • Parent commits 0dfb1b7

Comments (0)

Files changed (1)

File auth_additions/forms.py

     username = forms.RegexField(
         label=_(u"Username"),
         max_length=USERNAME_LENGTH,
-        regex=r"^[\w.@+-]+$",
+        regex=r"^[\w .@+-]+$",
         help_text = _("Required. %s characters or fewer. Letters, digits and "
-                      "@/./+/-/_ only." % USERNAME_LENGTH),
+                      "@/ /./+/-/_ only." % USERNAME_LENGTH),
         error_messages = {
             'invalid': _("This value may contain only letters, numbers and "
-                         "@/./+/-/_ characters.")}
-    )
+                         "@/ /./+/-/_ characters.")}
+    )