Groups
Sign in
Groups
Django users
Conversations
About
Send feedback
Help
Django 1.8.13 saving new user gets error NOT NULL constraint failed: auth_user.last_login
469 views
Skip to first unread message
bobhaugen
unread,
Jul 21, 2016, 11:46:37 AM
7/21/16
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
NOT NULL constraint failed: auth_user.last_login
This is a new user. Why should it have a last_login value?
I coded around it by giving the new user a fictitious last_login value, but still...
Simon Charette
unread,
Jul 21, 2016, 12:55:29 PM
7/21/16
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
If you upgraded from Django 1.7 you should make sure to run all auth migrations.
If you're using a custom user model make sure to makemigrations for its app and proceed to migrate it.
Simon
bobhaugen
unread,
Jul 21, 2016, 1:26:48 PM
7/21/16
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
Hah! You are right! My fault.
Reply all
Reply to author
Forward
0 new messages