IntegrityError - null value in column "email" violates not-null constraint
12 views
Skip to first unread message
Francisco André
unread,
Aug 4, 2020, 3:02:34 PM8/4/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hey guys.
I'm developing a new project and creating a custom user model, extending the AbstractBaseUser class, but when add a new user in admin interface or modelform I get the error: IntegrityError at /null value in column "email" violates not-null constraint.
The field email is necessary and I inform in the form, it's used to login too.
It's necessary create a "custom modelform" too? I followed many tutorials by web, including documentation. Links bellow.