Permalink
Browse files

Merge pull request #116 from nephila/feature/prefetch

Use prefetch related to trigger polymorphic downcast.
  • Loading branch information...
2 parents 36e4a01 + 63a70d8 commit 51364da1998e690ca48d58d276b27c7858a699ab @stefanfoulis stefanfoulis committed Feb 12, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 cmsplugin_filer_utils/__init__.py
@@ -10,5 +10,5 @@ def __init__(self, select_related=None):
def get_query_set(self):
qs = super(FilerPluginManager, self).get_query_set()
if self._select_related:
- qs = qs.select_related(*self._select_related)
+ qs = qs.prefetch_related(*self._select_related)
return qs

0 comments on commit 51364da

Please sign in to comment.