custom user model that maintains id as pk
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
class User(models.Model):
|
||||
# email = models.EmailField(primary_key=True)
|
||||
email = models.EmailField(unique=True)
|
||||
|
||||
REQUIRED_FIELDS = []
|
||||
USERNAME_FIELD = "email"
|
||||
is_anonymous = False
|
||||
is_authenticated = True
|
||||
|
||||
Reference in New Issue
Block a user