🐛 Fix missing max_length in EmailField
This commit is contained in:
parent
6832fd98df
commit
3c1ae8f5f4
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ class Group(Model):
|
||||||
|
|
||||||
class User(Model):
|
class User(Model):
|
||||||
id = field.IntField(pk=True)
|
id = field.IntField(pk=True)
|
||||||
email = field.CharField(unique=True, index=True)
|
email = field.CharField(max_length=255, unique=True, index=True)
|
||||||
username = field.CharField(max_length=150, unique=True)
|
username = field.CharField(max_length=150, unique=True)
|
||||||
password_hash = field.CharField(max_length=128)
|
password_hash = field.CharField(max_length=128)
|
||||||
is_admin = field.BooleanField(default=False)
|
is_admin = field.BooleanField(default=False)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue