|
|
|
|
@ -16,20 +16,20 @@ class User(AbstractUser): |
|
|
|
|
('f', 'Женщина'), |
|
|
|
|
) |
|
|
|
|
email = models.EmailField(_('email address'), unique=True) |
|
|
|
|
role = models.PositiveSmallIntegerField(default=0, choices=ROLE_CHOICES) |
|
|
|
|
gender = models.CharField(max_length=1, choices=GENDER_CHOICES) |
|
|
|
|
country = models.CharField(max_length=50, default='') |
|
|
|
|
city = models.CharField(max_length=85, default='') |
|
|
|
|
about = models.CharField(max_length=1000, default='') |
|
|
|
|
role = models.PositiveSmallIntegerField('Роль', default=0, choices=ROLE_CHOICES) |
|
|
|
|
gender = models.CharField('Пол', max_length=1, choices=GENDER_CHOICES) |
|
|
|
|
country = models.CharField('Страна', max_length=50, default='') |
|
|
|
|
city = models.CharField('Город', max_length=85, default='') |
|
|
|
|
about = models.CharField('О себе', max_length=1000, default='') |
|
|
|
|
instagram = models.URLField(default='') |
|
|
|
|
facebook = models.URLField(default='') |
|
|
|
|
twitter = models.URLField(default='') |
|
|
|
|
pinterest = models.URLField(default='') |
|
|
|
|
youtube = models.URLField(default='') |
|
|
|
|
vkontakte = models.URLField(default='') |
|
|
|
|
vkontakte = models.URLField('ВКонтакте', default='') |
|
|
|
|
fb_id = models.PositiveIntegerField(null=True, blank=True, unique=True) |
|
|
|
|
fb_data = pgfields.JSONField(default={}) |
|
|
|
|
is_email_proved = models.BooleanField(default=False) |
|
|
|
|
is_email_proved = models.BooleanField('Верифицирован по email', default=False) |
|
|
|
|
|
|
|
|
|
USERNAME_FIELD = 'email' |
|
|
|
|
REQUIRED_FIELDS = [] |
|
|
|
|
|