Delete account/migrations directory #1
@ -1,33 +0,0 @@
|
|||||||
# Generated by Django 4.1.1 on 2022-09-11 21:55
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
initial = True
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('auth', '0012_alter_user_first_name_max_length'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.CreateModel(
|
|
||||||
name='SiteUser',
|
|
||||||
fields=[
|
|
||||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('password', models.CharField(max_length=128, verbose_name='password')),
|
|
||||||
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
|
|
||||||
('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
|
|
||||||
('surname', models.CharField(max_length=60)),
|
|
||||||
('name', models.CharField(max_length=60)),
|
|
||||||
('email', models.EmailField(max_length=254, unique=True)),
|
|
||||||
('phone', models.CharField(max_length=16, unique=True)),
|
|
||||||
('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.group', verbose_name='groups')),
|
|
||||||
('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.permission', verbose_name='user permissions')),
|
|
||||||
],
|
|
||||||
options={
|
|
||||||
'abstract': False,
|
|
||||||
},
|
|
||||||
),
|
|
||||||
]
|
|
@ -1,18 +0,0 @@
|
|||||||
# Generated by Django 4.1.1 on 2022-09-11 22:00
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('account', '0001_initial'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='siteuser',
|
|
||||||
name='is_staff',
|
|
||||||
field=models.BooleanField(default=False),
|
|
||||||
),
|
|
||||||
]
|
|
@ -1,38 +0,0 @@
|
|||||||
# Generated by Django 4.1.1 on 2022-09-16 23:12
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('account', '0002_siteuser_is_staff'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='siteuser',
|
|
||||||
name='email',
|
|
||||||
field=models.EmailField(max_length=254, unique=True, verbose_name='Email'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='siteuser',
|
|
||||||
name='is_staff',
|
|
||||||
field=models.BooleanField(default=False, verbose_name='Разрешение на вход в админку'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='siteuser',
|
|
||||||
name='name',
|
|
||||||
field=models.CharField(max_length=60, verbose_name='Имя'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='siteuser',
|
|
||||||
name='phone',
|
|
||||||
field=models.CharField(max_length=16, unique=True, verbose_name='Телефон'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='siteuser',
|
|
||||||
name='surname',
|
|
||||||
field=models.CharField(max_length=60, verbose_name='Фамилия'),
|
|
||||||
),
|
|
||||||
]
|
|
@ -1,19 +0,0 @@
|
|||||||
# Generated by Django 4.1.1 on 2022-09-18 19:41
|
|
||||||
|
|
||||||
import django.core.validators
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('account', '0003_alter_siteuser_email_alter_siteuser_is_staff_and_more'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='siteuser',
|
|
||||||
name='phone',
|
|
||||||
field=models.CharField(max_length=16, unique=True, validators=[django.core.validators.RegexValidator(regex='?[+][0-9]*'), django.core.validators.MaxLengthValidator(limit_value=16), django.core.validators.MinLengthValidator(limit_value=6)], verbose_name='Телефон'),
|
|
||||||
),
|
|
||||||
]
|
|
@ -1,19 +0,0 @@
|
|||||||
# Generated by Django 4.1.1 on 2022-09-18 19:44
|
|
||||||
|
|
||||||
import django.core.validators
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('account', '0004_alter_siteuser_phone'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='siteuser',
|
|
||||||
name='phone',
|
|
||||||
field=models.CharField(max_length=16, unique=True, validators=[django.core.validators.RegexValidator(regex='^\\+?[0-9]*$'), django.core.validators.MaxLengthValidator(limit_value=16), django.core.validators.MinLengthValidator(limit_value=6)], verbose_name='Телефон'),
|
|
||||||
),
|
|
||||||
]
|
|
@ -1,24 +0,0 @@
|
|||||||
# Generated by Django 4.1.1 on 2022-09-24 12:03
|
|
||||||
|
|
||||||
import django.core.validators
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('account', '0005_alter_siteuser_phone'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='siteuser',
|
|
||||||
name='is_phone_verified',
|
|
||||||
field=models.BooleanField(default=False, verbose_name='Телефон верифицирован'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='siteuser',
|
|
||||||
name='phone',
|
|
||||||
field=models.CharField(max_length=16, unique=True, validators=[django.core.validators.RegexValidator(regex='^\\+7[0-9]*$'), django.core.validators.MaxLengthValidator(limit_value=12), django.core.validators.MinLengthValidator(limit_value=12)], verbose_name='Телефон'),
|
|
||||||
),
|
|
||||||
]
|
|
@ -1,19 +0,0 @@
|
|||||||
# Generated by Django 4.1.1 on 2022-09-25 08:10
|
|
||||||
|
|
||||||
import django.core.validators
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('account', '0006_siteuser_is_phone_verified_alter_siteuser_phone'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='siteuser',
|
|
||||||
name='phone',
|
|
||||||
field=models.CharField(max_length=16, unique=True, validators=[django.core.validators.RegexValidator(regex='^\\+7[0-9]{10}$')], verbose_name='Телефон'),
|
|
||||||
),
|
|
||||||
]
|
|
@ -1,19 +0,0 @@
|
|||||||
# Generated by Django 4.1.1 on 2022-09-26 18:59
|
|
||||||
|
|
||||||
import datetime
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('account', '0007_alter_siteuser_phone'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='siteuser',
|
|
||||||
name='register_datetime',
|
|
||||||
field=models.DateTimeField(default=datetime.datetime.now, editable=False),
|
|
||||||
),
|
|
||||||
]
|
|
Reference in New Issue
Block a user