﻿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
21164	get_user_model() does not handle custom user models for testing purposes	raymond.penners@…	nobody	"I would have expected the following test code to work:

{{{
from django.contrib.auth import get_user_model

@override_settings(AUTH_USER_MODEL='auth.CustomUser')
class CustomUserAccountTests(TestCase):

    def test_user(self):
        User = get_user_model()
}}}

Yet, `get_user_model` does not seem to cope with the idea of a model being defined in the tests package:

{{{
ImproperlyConfigured: AUTH_USER_MODEL refers to model 'auth.CustomUser' that has not been installed
}}}"	Bug	closed	contrib.auth	1.6-alpha-1	Release blocker	fixed			Accepted	1	0	0	0	0	0
