﻿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
12540	Add support for cross-database foreign keys and m2m	Russell Keith-Magee	nobody	"Django's multidb support currently prevents foreign keys from referencing foreign databases. This means the obvious use case of ""put User objects in the auth database"" et al are not possible.

The full solution requires at least the following:
 * Modifying ForeignKey to relax foreign key constraints if it is known that the foreign key will be on another database
 * Providing hooks to allow FK and M2M descriptors to look up the right database to use

There has been [http://groups.google.com/group/django-users/browse_thread/thread/74bcd1afdeb2f0 some initial discussion on django users] about this subject."	Uncategorized	closed	Database layer (models, ORM)	1.2-alpha	Normal	fixed		Zbigniew Braniecki	Accepted	0	0	0	0	0	0
