From bb145e2c47d71b7f68280c00ced727442d2effa2 Mon Sep 17 00:00:00 2001 From: Thomas Sorrel Date: Sun, 21 Jul 2013 11:02:36 +0200 Subject: Fixed #13629 -- Added CSS classes to the `` tag of some admin templates to allow style customizations per app or per model. --- tests/admin_views/tests.py | 53 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) (limited to 'tests') diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index a83c756a25..7decf6f471 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -3824,6 +3824,59 @@ class CSSTest(TestCase): self.assertContains(response, '') self.assertContains(response, '') + def testAppModelInFormBodyClass(self): + """ + Ensure app and model tag are correcly read by change_form template + """ + response = self.client.get('/test_admin/admin/admin_views/section/add/') + self.assertEqual(response.status_code, 200) + self.assertContains(response, + '