Change default is_ative to True
This commit is contained in:
parent
1a34329937
commit
b5964fbd99
18
users/migrations/0004_alter_user_is_active.py
Normal file
18
users/migrations/0004_alter_user_is_active.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 3.2.9 on 2021-12-21 07:01
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('users', '0003_alter_user_reset_code'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='user',
|
||||||
|
name='is_active',
|
||||||
|
field=models.BooleanField(default=True),
|
||||||
|
),
|
||||||
|
]
|
@ -9,7 +9,7 @@ class User(AbstractBaseUser):
|
|||||||
last_name = models.CharField(max_length=100)
|
last_name = models.CharField(max_length=100)
|
||||||
|
|
||||||
email = models.EmailField(db_index=True, unique=True, max_length=50)
|
email = models.EmailField(db_index=True, unique=True, max_length=50)
|
||||||
is_active = models.BooleanField(default=False)
|
is_active = models.BooleanField(default=True)
|
||||||
|
|
||||||
confirmation_number = models.CharField(max_length=100)
|
confirmation_number = models.CharField(max_length=100)
|
||||||
reset_code = models.IntegerField(null=True)
|
reset_code = models.IntegerField(null=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user