Commits

James Bennett committed 5e5470c Merge
  • Participants
  • Parent commits a6e362d, ba1d3d0

Comments (0)

Files changed (2)

File registration/forms.py

                                 max_length=30,
                                 widget=forms.TextInput(attrs=attrs_dict),
                                 label=_("Username"),
-                                error_messages={'invalid': _("This value must contain only letters, numbers and underscores.")})
+                                error_messages={'invalid': _("This value may contain only letters, numbers and @/./+/-/_ characters.")})
     email = forms.EmailField(widget=forms.TextInput(attrs=dict(attrs_dict,
                                                                maxlength=75)),
                              label=_("E-mail"))

File registration/tests/forms.py

                       'email': 'foo@example.com',
                       'password1': 'foo',
                       'password2': 'foo'},
-            'error': ('username', [u"This value must contain only letters, numbers and underscores."])},
+            'error': ('username', [u"This value may contain only letters, numbers and @/./+/-/_ characters."])},
             # Already-existing username.
             {'data': {'username': 'alice',
                       'email': 'alice@example.com',