django1/django/db/models
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
..
fields Fixed #23791 -- Corrected object type check for pk__in=qs 2015-06-29 07:49:31 -04:00
sql Fixed #23791 -- Corrected object type check for pk__in=qs 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 Fixed #24887 -- Removed one-arg limit from models.aggregate 2015-06-27 11:44:33 -04:00
base.py Fixed #16891 -- Made Model/QuerySet.delete() return the number of deleted objects. 2015-05-22 13:27:16 -04:00
constants.py Refactored qs.add_q() and utils/tree.py 2013-03-13 10:44:49 +02:00
deletion.py Fixed #16891 -- Made Model/QuerySet.delete() return the number of deleted objects. 2015-05-22 13:27:16 -04:00
expressions.py Fixed #24752 -- query crash when reusing Case expressions 2015-05-05 11:38:12 -04:00
functions.py Minor edits to Greatest/Least docs; refs #24767. 2015-06-05 11:40:10 -04:00
lookups.py Fixed #24744 - Fixed relabeled_clone for the Transform 2015-06-06 09:04:53 -04:00
manager.py Fixed #24940 -- Made model managers hashable 2015-06-19 19:02:01 +02:00
options.py Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
query.py Fixed #23791 -- Corrected object type check for pk__in=qs 2015-06-29 07:49:31 -04:00
query_utils.py Fixed #23791 -- Corrected object type check for pk__in=qs 2015-06-29 07:49:31 -04:00
signals.py Removed pre_syncdb and post_syncdb signals per deprecation timeline. 2015-01-17 09:07:00 -05:00
utils.py Fixed #24215 -- Refactored lazy model operations 2015-03-25 16:48:17 -04:00