﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24679	Auth User last_login initialized as NULL from 1.8, old DB conflicts, documentation update	Mark Tranchant	nobody	"In 1.8, there was a change to the User model where last_login is set to {{{NULL}}} when a new user is created.

Databases created under older versions have a {{{NOT NULL}}} constraint on the {{{last_login}}} column of {{{auth_user}}}. An app that tries to auto-create a user non-interactively via {{{create_user()}}} will fail due to the database conflict.

The 1.8 release notes do not refer (directly) to this change; the Authentication documentation [https://docs.djangoproject.com/en/1.8/ref/contrib/auth/#django.contrib.auth.models.User.last_login mentions it in passing] but doesn't warn of the consequences.

This should be made clear in the release notes and in the Authentication documentation. In my case, my test suite didn't pick it up because the test database is created from scratch."	Bug	closed	Documentation	1.8	Normal	invalid	last_login		Unreviewed	0	0	0	0	1	0
