selected_related not pulling from GenericRelation's
|Reported by:||anonymous||Owned by:||adrian|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
My assumption is that select_related would pull a GenericRelation but it doesn't seem to.
The problem comes from where I have two models, one being generic, and one being specific. The generic model holds data thats used by several models, and contains an object_id and content_type.
The specific model let's call it Article, and the generic Rating. The end goal would be to be able to do things, such as create a manager, which could perform a left join. The code in SQL would be similar to select * from article_table left join rating_table on a.id = b.object_id and b.content_type_id = x.
The problem is (as far as I can tell) there's no way to do this in django.