mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16: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:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user