Re: Allow the Prefetch queryset to be used with GenericForeignKey

2014-03-30 Thread Luis Matoso
That would be awesome, somebody has a solution for this? On Sunday, February 16, 2014 2:53:55 PM UTC-3, Robert Kajic wrote: > > I would love it if the Prefetch object allowed me to pass in custom > querysets when prefetching related generic foreign fields. Specifically I > want this in order to

Allow the Prefetch queryset to be used with GenericForeignKey

2014-02-16 Thread Robert Kajic
I would love it if the Prefetch object allowed me to pass in custom querysets when prefetching related generic foreign fields. Specifically I want this in order to call select_related on each subgroup. For now I've subclassed the GenericForiengKey class, overriding get_prefetch_queryset, to allo