1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #10615 - Added selection counter to admin change list. Thanks to Martin Mahner for the idea and initial patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12107 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel
2010-01-05 18:24:27 +00:00
parent 33afa13af5
commit afa4c5ac60
9 changed files with 61 additions and 3 deletions

View File

@@ -1209,6 +1209,13 @@ class AdminActionsTest(TestCase):
self.assertContains(response, msg)
self.failUnlessEqual(Subscriber.objects.count(), 2)
def test_selection_counter(self):
"""
Check if the selection counter is there.
"""
response = self.client.get('/test_admin/admin/admin_views/subscriber/')
self.assertContains(response, '<span class="_acnt">0</span> of 2 subscribers selected')
class TestCustomChangeList(TestCase):
fixtures = ['admin-views-users.xml']