mirror of
https://github.com/django/django.git
synced 2025-12-02 00:01:29 +00:00
Replaced an antiquated pattern.
Thanks Lennart Regebro for pointing it out.
This commit is contained in:
parent
b1bfd9630e
commit
9c487b5974
30 changed files with 49 additions and 43 deletions
|
|
@ -532,7 +532,7 @@ class Query(object):
|
|||
|
||||
# Ordering uses the 'rhs' ordering, unless it has none, in which case
|
||||
# the current ordering is used.
|
||||
self.order_by = rhs.order_by and rhs.order_by[:] or self.order_by
|
||||
self.order_by = rhs.order_by[:] if rhs.order_by else self.order_by
|
||||
self.extra_order_by = rhs.extra_order_by or self.extra_order_by
|
||||
|
||||
def deferred_to_data(self, target, callback):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue