Skip to content

Commit

Permalink
Merge pull request #298 from Satchitananda/patch-1
Browse files Browse the repository at this point in the history
Fix bug with select related (close #298).
  • Loading branch information
zlorf committed Apr 1, 2015
2 parents 9dbf3f6 + 36e331c commit b165d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modeltranslation/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def _rewrite_order(self):

def _rewrite_select_related(self):
if isinstance(self.query.select_related, dict):
new = []
new = {}
for field_name, value in self.query.select_related.items():
new[rewrite_order_lookup_key(self.model, field_name)] = value
self.query.select_related = new
Expand Down

0 comments on commit b165d63

Please sign in to comment.