Skip to content

Commit

Permalink
Make error message clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
ffont committed Mar 15, 2024
1 parent 877a12e commit 59c2ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accounts/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def __init__(self, required=True):
max_length=30,
validators=[RegexValidator(r'^[\w.+-]+$')], # is the same as Django UsernameValidator except for '@' symbol
help_text="30 characters or fewer. Can contain: letters, digits, underscores, dots, dashes and plus signs.",
error_messages={'invalid': "This value must contain only letters, digits, underscores, dots, dashes and "
error_messages={'invalid': "The username field must contain only letters, digits, underscores, dots, dashes and "
"plus signs."},
required=required)

Expand Down

0 comments on commit 59c2ade

Please sign in to comment.