Fixed #23898 -- Added missing context to admin's deleted_selected view.

Thanks Redouane Zait for the report.
This commit is contained in:
Redouane Zait 2014-11-23 15:08:34 +01:00 committed by Tim Graham
parent 392e11945f
commit 8e7b384d89
3 changed files with 16 additions and 11 deletions

View file

@ -838,6 +838,7 @@ class AdminCustomTemplateTests(AdminViewBasicTestCase):
'_selected_action': group.id
}
response = self.client.post('/test_admin/%s/auth/group/' % (self.urlbit), post_data)
self.assertEqual(response.context['site_header'], 'Django administration')
self.assertContains(response, 'bodyclass_consistency_check ')
def test_filter_with_custom_template(self):