Hi,

I'm having some trouble getting data from a database with foreign-keys. 

Normally a query-set retrieved like this, obj = 
model.objects.all().filter(id=pk).select_related(), would give me the table 
row data, and the related row data from another table defined in the model, 
of the default database.
And normally if I say, obj = 
model.objects.all().filter(id=pk).using('somedatabase'), I get the data 
from the row in the using defined database.

But I cant seem to get the related data from a using database. For 
instance, obj = 
model.objects.all().filter(id=pk).select_related().using('somedatabase'), 
gives me all the data from the 'using' database but never any of the 
related data of the 'using' database.

Does anyone have any ideas?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a5ba1a3c-9358-4c37-8cdd-5103c221d072%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to