mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #10414 -- Made select_related() fail on invalid field names.
This commit is contained in:
parent
b27db97b23
commit
3daa9d60be
6 changed files with 180 additions and 11 deletions
|
@ -181,7 +181,7 @@ class NonAggregateAnnotationTestCase(TestCase):
|
|||
other_chain=F('chain'),
|
||||
is_open=Value(True, BooleanField()),
|
||||
book_isbn=F('books__isbn')
|
||||
).select_related('store').order_by('book_isbn').filter(chain='Westfield')
|
||||
).order_by('book_isbn').filter(chain='Westfield')
|
||||
|
||||
self.assertQuerysetEqual(
|
||||
qs, [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue