On Thu, Sep 9, 2010 at 8:48 AM, qMax <qwigly...@gmail.com> wrote: > Hi. > > Being quite new in django, > I have a task to integrate data from multiple databases. > And I wonder if django-1.2 multibase capabilities can help me in that. > > The idea is like that: > class PersonModel(Model): > id = AutoKey(primary_key=True) > system = ForeignKey(SystemUsers, blank=True) > staff = ForeignKey(Staff, blank=True) > foo = ForeignKey(FooPeople, blank=True) > Problem is that SystemUsers, Staff , FooPeople are in different > databases, thus i cannot use just django.db.models.ForeignKey
This issue is specifically addressed in the multi-db docs: http://docs.djangoproject.com/en/1.2/topics/db/multi-db/#cross-database-relations It's a known limitaiton; you *might* be able to work around it, but it's not an official supported behavior, so it's pretty much up to you to tinker. Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.