diff options
Diffstat (limited to 'django/db/models/sql')
| -rw-r--r-- | django/db/models/sql/query.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index a1c1c4be38..c8cb095d09 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -981,12 +981,6 @@ class Query: # Subqueries need to use a different set of aliases than the outer query. clone.bump_prefix(query) clone.subquery = True - # It's safe to drop ordering if the queryset isn't using slicing, - # distinct(*fields) or select_for_update(). - if (self.low_mark == 0 and self.high_mark is None and - not self.distinct_fields and - not self.select_for_update): - clone.clear_ordering(True) return clone def prepare_lookup_value(self, value, lookups, can_reuse, allow_joins=True): |
