﻿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
14287	TEST_MIRROR is not respected in routers	David Cramer	nobody	"When using TEST_MIRROR to proxy database connections in the test environment, the alias is not saved when calling syncdb (and possible other) routines. This causes a problem when you're using routers and checking db aliases.

Here's a quick example:

{{{
    def allow_syncdb(self, db, model):
        # analytics has TEST_MIRROR = 'default', so in tests, db is set to 'default' here
        if model._meta.app_label == 'analytics' and db == 'analytics':
            return True
}}}"	Bug	new	Database layer (models, ORM)	1.2	Normal			roman@…	Accepted	0	0	0	0	0	0
