From 3daa9d60be6672841ceed5bb812b6fb25950dc16 Mon Sep 17 00:00:00 2001 From: Niclas Olofsson Date: Thu, 4 Dec 2014 21:47:48 +0100 Subject: Fixed #10414 -- Made select_related() fail on invalid field names. --- tests/annotations/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/annotations') diff --git a/tests/annotations/tests.py b/tests/annotations/tests.py index 8a4bffcb6e..a2a1c8f852 100644 --- a/tests/annotations/tests.py +++ b/tests/annotations/tests.py @@ -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, [ -- cgit v1.3