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 @@ Ник ФИО (или ник если нет) Телефон - Skype + Email — @@ -31,7 +31,7 @@ {{ usr.get_full_name }} {% if usr.telephone %}{{ usr.telephone }}{% else %} Нету{% endif %} - {% if usr.skype %}{{ usr.skype }}{% else %} + {% if usr.email %}{{ usr.email }}{% else %} Нету{% endif %} -
- Skype - -
- - -
-
diff --git a/templates/accounts/settings/ch_info.html b/templates/accounts/settings/ch_info.html index ad21e49..e05608f 100644 --- a/templates/accounts/settings/ch_info.html +++ b/templates/accounts/settings/ch_info.html @@ -49,16 +49,6 @@
-
- - -
- - -
-
-