diff --git a/django/db/models/query.py b/django/db/models/query.py index 3c43a57d4a..fa3971bc48 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -419,6 +419,7 @@ class QuerySet(object): return {} qs = self._clone() qs.query.add_filter(('pk__in', id_list)) + qs.query.clear_ordering(force_empty=True) return dict([(obj._get_pk_val(), obj) for obj in qs.iterator()]) def delete(self):