Ticket #15116: in_bulk_ordering.diff

File in_bulk_ordering.diff, 456 bytes (added by Chris Lamb, 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):  
    409409            return {}
    410410        qs = self._clone()
    411411        qs.query.add_filter(('pk__in', id_list))
     412        qs.query.clear_ordering(force_empty=True)
    412413        return dict([(obj._get_pk_val(), obj) for obj in qs.iterator()])
    413414
    414415    def delete(self):
Back to Top