Change default is_ative to True

This commit is contained in:
Hubert Jankowski 2021-12-21 08:02:19 +01:00
parent 1a34329937
commit b5964fbd99
2 changed files with 19 additions and 1 deletions

View 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),
),
]

View File

@ -9,7 +9,7 @@ class User(AbstractBaseUser):
last_name = models.CharField(max_length=100)
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)
reset_code = models.IntegerField(null=True)