Fixed order_by chaining issue (#265)

This commit is contained in:
Ross Lawley 2013-04-12 15:56:40 +00:00
parent f10e946896
commit c9a5710554
2 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Changelog
Changes in 0.7.10 Changes in 0.7.10
================= =================
- Fixed order_by chaining issue (#265)
- Added dereference support for tuples (#250) - Added dereference support for tuples (#250)
- Resolve field name to db field name when using distinct(#260, #264, #269) - Resolve field name to db field name when using distinct(#260, #264, #269)
- Added kwargs to doc.save to help interop with django (#223, #270) - Added kwargs to doc.save to help interop with django (#223, #270)

View File

@ -1321,7 +1321,8 @@ class QuerySet(object):
key_list.append((key, direction)) key_list.append((key, direction))
self._ordering = key_list self._ordering = key_list
if self._cursor_obj:
self._cursor_obj.sort(key_list)
return self return self
def explain(self, format=False): def explain(self, format=False):