diff options
author | Anssi Kääriäinen <akaariai@gmail.com> | 2015-06-25 18:31:07 +0300 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-06-29 07:49:31 -0400 |
commit | 9ed82154bd0bd01c6195942db84302e791ad366f (patch) | |
tree | 13e1a31125e71859646e58f9b6c8bb589b1911bd /tests/template_tests/test_custom.py | |
parent | 736fb1838cc25f5faf57cd2a4f6b6ab32ff9aadc (diff) | |
download | django-9ed82154bd0bd01c6195942db84302e791ad366f.tar.gz |
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.
Diffstat (limited to 'tests/template_tests/test_custom.py')
0 files changed, 0 insertions, 0 deletions