diff --git a/users/forms.py b/users/forms.py index e072383..ac27e1a 100644 --- a/users/forms.py +++ b/users/forms.py @@ -13,7 +13,7 @@ class UserCreationForm(forms.ModelForm): } username = forms.RegexField( label=_("Username"), max_length=30, - regex=r'^[\w-]+$' + regex=r'^[\w\-.]+$' ) password = forms.CharField( label=_("Password"),