custom user model that maintains id as pk

This commit is contained in:
Disco DeDisco
2026-01-30 15:04:47 -05:00
parent a734901b80
commit d724e03c3c
7 changed files with 48 additions and 5 deletions

View File

@@ -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