#12540: Add support for cross-database foreign keys and m2m
------------------------------------------+---------------------------------
 Reporter:  russellm                      |       Owner:  nobody    
   Status:  new                           |   Milestone:            
Component:  Database layer (models, ORM)  |     Version:  1.2-alpha 
 Keywords:                                |       Stage:  Unreviewed
Has_patch:  0                             |  
------------------------------------------+---------------------------------
 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.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12540>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.


Reply via email to