magic-removal: Fixed bug in combining ordered QuerySets
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2288 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e28addd70b
commit
ab6a97cb4a
|
@ -288,7 +288,7 @@ class QuerySet(object):
|
||||||
combined = other._clone()
|
combined = other._clone()
|
||||||
# If 'self' is ordered and 'other' isn't, propagate 'self's ordering
|
# If 'self' is ordered and 'other' isn't, propagate 'self's ordering
|
||||||
if (self._order_by is not None and len(self._order_by) > 0) and \
|
if (self._order_by is not None and len(self._order_by) > 0) and \
|
||||||
(combined._order_by is None or len(combined._order_by == 0)):
|
(combined._order_by is None or len(combined._order_by) == 0):
|
||||||
combined._order_by = self._order_by
|
combined._order_by = self._order_by
|
||||||
return combined
|
return combined
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue