﻿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
20214	Custom User Model Manager has problem with test database	dnielfs@…	nobody	"I'm using a custom user model with :

class BaseUser(AbstractUser) and AUTH_USER_MODEL = ""main.BaseUser"" .

But when I try to run the test cases I got this error :

(DEV)devniel@ubuntu:~/xxx$ python manage.py test main
Creating test database for alias 'default'...
Got an error creating the test database: (1007, ""Can't create database 'test_xxx'; database exists"")
Type 'yes' if you would like to try deleting the test database 'test_quickytaxi', or 'no' to cancel: yes
Destroying old test database 'default'...
'''AttributeError: Manager isn't available; User has been swapped for 'main.BaseUser''''

I try with a test.py empty and the problem still persists.
"	Uncategorized	closed	Testing framework	1.5	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
