﻿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
17898	The database option is not honored when `createsuperuser` is called by `syncdb`	Simon Charette	nobody	"When calling the `syncdb` command with a `database` kwarg

{{{
./manage.py syncdb --database my_specific_db
}}}

The `post_sync_db` signal is dispatched correctly but the `django.contrib.auth.management.create_superuser` receiver doesn't take the db kwarg into account when calling `createsuperuser` thus it attempts to create it on the default database. It should call the command on the database specified in syncdb.

I'm attaching a patch but I really don't know where I should add tests for this, I can't find where syncdb is tested. Is it??

"	Bug	closed	contrib.auth	1.3	Release blocker	fixed	syncdb createsuperuser database multidb		Unreviewed	1	0	1	0	0	0
