mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #14334 -- Query relation lookups now check object types.
Thanks rpbarlow for the suggestion; and loic, akaariai, and jorgecarleitao for reviews.
This commit is contained in:
parent
81edf2d006
commit
34ba86706f
6 changed files with 144 additions and 21 deletions
|
@ -100,7 +100,6 @@ class OneToOneTests(TestCase):
|
|||
assert_filter_waiters(restaurant__place__exact=self.p1)
|
||||
assert_filter_waiters(restaurant__place__pk=self.p1.pk)
|
||||
assert_filter_waiters(restaurant__exact=self.p1.pk)
|
||||
assert_filter_waiters(restaurant__exact=self.p1)
|
||||
assert_filter_waiters(restaurant__pk=self.p1.pk)
|
||||
assert_filter_waiters(restaurant=self.p1.pk)
|
||||
assert_filter_waiters(restaurant=self.r)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue