From c5c1e7a7e51c00f754342f0a20d390dbca1c6f7e Mon Sep 17 00:00:00 2001 From: Shrimadhav U K Date: Tue, 1 Nov 2016 09:43:18 +0530 Subject: [PATCH] found this error when I tried to register via GitHub --- registration/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registration/models.py b/registration/models.py index d5db0ef..df203d8 100644 --- a/registration/models.py +++ b/registration/models.py @@ -37,7 +37,7 @@ class User(AbstractBaseUser): user_first_name = models.CharField(_('First Name'), max_length=32, blank=True, null=True, validators=[RegexValidator(regex='^[A-Za-z]*$')]) user_last_name = models.CharField(_('Last Name'), max_length=32, blank=True, null=True, - validators=[RegexValidator(regex='^[A-Za-z]*$')]) + validators=[RegexValidator(regex='^[A-Za-z0-9\ ]*$')]) email = models.EmailField(_('Email'), db_index=True, unique=True) user_dob = models.DateField(_('Birth Date'), blank=True, null=True) user_gender = models.CharField(_('Gender'), max_length=1, choices=GENDER, blank=True, null=True)