Skip to content

Commit

Permalink
Fixed two tests in previous commit; refs django#16311.
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Aug 4, 2014
1 parent 98e8da3 commit b50ea73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/admin_filters/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def test_relatedonlyfieldlistfilter_foreignkey(self):
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):
Expand All @@ -504,7 +504,7 @@ def test_relatedonlyfieldlistfilter_manytomany(self):
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):
Expand Down

0 comments on commit b50ea73

Please sign in to comment.