remotes/origin/mitri4
spacenergy 10 years ago
parent 767885b9bc
commit d67ee6aa8e
  1. 19
      accounts/migrations/0004_auto_20160229_1409.py
  2. 2
      accounts/models.py
  3. 19
      store/migrations/0047_auto_20160229_1409.py

@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_auto_20150616_2302'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='email',
field=models.EmailField(verbose_name='Email', default=None, max_length=254),
),
]

@ -30,7 +30,7 @@ class ProfileManager(BaseUserManager):
class Profile(AbstractBaseUser):
phone = models.CharField('Номер мобильного телефона', max_length=15, unique=True, db_index=True)
email = models.EmailField('Email', blank=False, null=False, default=None, unique=True, db_index=True)
email = models.EmailField('Email', blank=False, null=False, default=None, unique=False)
first_name = models.CharField('Имя', max_length=30, blank=True)
last_name = models.CharField('Фамилия', max_length=30, blank=True)
date_joined = models.DateTimeField('Регистрация', default=datetime.now)

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save