django1/django/db/models/sql
Anssi Kääriäinen 9ed82154bd Fixed #23791 -- Corrected object type check for pk__in=qs
When the pk was a relation field, qs.filter(pk__in=qs) didn't work.

In addition, fixed Restaurant.objects.filter(place=restaurant_instance),
where place is an OneToOneField and the primary key of Restaurant.

A big thank you to Josh for review and to Tim for review and cosmetic
edits.

Thanks to Beauhurst for commissioning the work on this ticket.
2015-06-29 07:49:31 -04:00
..
__init__.py Sorted imports in __init__.py files. 2015-06-27 11:53:33 -04:00
aggregates.py Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
compiler.py Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
constants.py Fixed #24020 -- Refactored SQL compiler to use expressions 2015-01-08 14:07:54 -05:00
datastructures.py Fixed #21414 -- Removed RelatedObject and deprecated Field.related. 2014-12-23 10:54:25 -05:00
query.py Fixed #23791 -- Corrected object type check for pk__in=qs 2015-06-29 07:49:31 -04:00
subqueries.py Fixed #16891 -- Made Model/QuerySet.delete() return the number of deleted objects. 2015-05-22 13:27:16 -04:00
where.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00