Commits

Duncan Parkes  committed 3cd335e

Reflect new regular expression in the error message.
(The text of this error message is copied from django.contrib.auth.forms)

  • Participants
  • Parent commits fad7080

Comments (0)

Files changed (1)

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"))