public
Last active

  • Download Gist
gistfile1.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14
--- db/models/sql/query_org.py 2012-04-29 12:06:48.798119638 +0200
+++ db/models/sql/query.py 2012-04-29 12:04:20.155210307 +0200
@@ -1753,7 +1753,12 @@
certain related models (as opposed to all models, when
self.select_related=True).
"""
- field_dict = {}
+ if self.select_related is False:
+ field_dict = {}
+ else:
+ field_dict = self.select_related
for field in fields:
d = field_dict
for part in field.split(LOOKUP_SEP):

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.