Let's say I have a model: User (name = CharField()) and model Bulletin
(body = CharField(), user = ForeignKey(User))

and so I want to fetch a bunch of bulletins and the related user
information.  My case is a lot more complex than this and I can't use
select_related (since that seems to be fetching the whole DB :).  And I
don't want to do get_user() on the Bulletin after fetching it since
that incurs another DB query (and doing DB queries in a loop isn't
nice).

So summing up - is there a way to fetch a given object + a related
object, or do I have to do it with handmade SQL?

regards

Reply via email to