From b50ea73e1e0179c1925167832318a6d0316ee50b Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 4 Aug 2014 10:21:13 -0400 Subject: [PATCH] Fixed two tests in previous commit; refs #16311. --- tests/admin_filters/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/admin_filters/tests.py b/tests/admin_filters/tests.py index 23c6c10319..dccd2e3b5f 100644 --- a/tests/admin_filters/tests.py +++ b/tests/admin_filters/tests.py @@ -494,7 +494,7 @@ class ListFiltersTests(TestCase): changelist = self.get_changelist(request, Book, modeladmin) # Make sure that only actual authors are present in author's list filter - filterspec = changelist.get_filters(request)[0][1] + filterspec = changelist.get_filters(request)[0][4] self.assertEqual(filterspec.lookup_choices, [(1, 'alfred'), (2, 'bob')]) def test_relatedonlyfieldlistfilter_manytomany(self): @@ -504,7 +504,7 @@ class ListFiltersTests(TestCase): changelist = self.get_changelist(request, Book, modeladmin) # Make sure that only actual contributors are present in contrib's list filter - filterspec = changelist.get_filters(request)[0][2] + filterspec = changelist.get_filters(request)[0][5] self.assertEqual(filterspec.lookup_choices, [(2, 'bob'), (3, 'lisa')]) def test_booleanfieldlistfilter(self):