add default to match sql
This commit is contained in:
parent
850e5f0aa8
commit
e5f195001d
|
@ -42,7 +42,7 @@ class User(AbstractBaseUser):
|
||||||
choices=Role.choices,
|
choices=Role.choices,
|
||||||
db_column="type",
|
db_column="type",
|
||||||
)
|
)
|
||||||
is_active = models.BooleanField()
|
is_active = models.BooleanField(default=False)
|
||||||
|
|
||||||
username = models.CharField(unique=True, max_length=255, db_column="login")
|
username = models.CharField(unique=True, max_length=255, db_column="login")
|
||||||
password = models.CharField(max_length=255, db_column="pass")
|
password = models.CharField(max_length=255, db_column="pass")
|
||||||
|
|
Loading…
Reference in New Issue