Hi, I'm running the django 1.2 beta and am testing out the multi-db system. Unfortunately I have run into an issue where I have:
class A(models.Model): name = models.CharField() <stuff> class B(models.Model): a = models.ForeignKey(A) <stuff> I also have database routers set up so that A items are on a separate database to B items. The problem I'm having is when I try to do B.objects.select_related().all() as I get a database error saying the table for A does not exist. This same issue occurs if I try to do B.objects.filter(a__name='Fred'). Am I right in assuming that this usage just isn't possible, or is there something that I've missed (I was unable to find any mention of this situation in either the multi- db documentation[1] or the select_related documentation[2])? Theoretically the query should be possible as both databases are on the same host, but database names aren't being prepended so it's not finding them. Cheers, G 1. http://docs.djangoproject.com/en/dev/topics/db/multi-db/ 2. http://docs.djangoproject.com/en/dev/ref/models/querysets/#id4 -- 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.