Ticket #15116: in_bulk_ordering.diff
File in_bulk_ordering.diff, 456 bytes (added by , 14 years ago) |
---|
-
django/db/models/query.py
diff --git a/django/db/models/query.py b/django/db/models/query.py index e2f0ebe..d0db38c 100644
a b class QuerySet(object): 409 409 return {} 410 410 qs = self._clone() 411 411 qs.query.add_filter(('pk__in', id_list)) 412 qs.query.clear_ordering(force_empty=True) 412 413 return dict([(obj._get_pk_val(), obj) for obj in qs.iterator()]) 413 414 414 415 def delete(self):