diff --git a/accounts_app/models.py b/accounts_app/models.py index 610031d..9d33b67 100644 --- a/accounts_app/models.py +++ b/accounts_app/models.py @@ -49,10 +49,9 @@ class UserProfile(AbstractBaseUser, PermissionsMixin): telephone = models.CharField( max_length=16, verbose_name='Telephone number', - unique=True, + #unique=True, validators=[RegexValidator(r'^\+[7,8,9,3]\d{10,11}$')] ) - skype = models.CharField(max_length=20, blank=True) avatar = models.ForeignKey(Photo, null=True, blank=True) email = models.EmailField() diff --git a/templates/accounts/acc_list.html b/templates/accounts/acc_list.html index cd7e9ce..3a39d9c 100644 --- a/templates/accounts/acc_list.html +++ b/templates/accounts/acc_list.html @@ -16,7 +16,7 @@