aRkadeFR
unread,Apr 21, 2015, 12:27:57 PM4/21/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Hello,
I'm upgrading my systems to Django 1.8 and I'm facing this error:
(1048, "Column 'last_login' cannot be null")
so I describe my table in DB:
+---------------------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default |
Extra |
+---------------------+------------------+------+-----+---------+----------------+
| last_login | datetime | NO | | NULL
| |
and yep, it is not nullable, but the 0005_alter_user_last_login_null
migrations
is run, so why this field is not nullable?
How can I debug this?
PS: I run ./manage.py migrate (without --fake option)
and I use the AbstractUser as my base class.
Thanks and have a good one