diff options
| author | Jannis Leidel <jannis@leidel.info> | 2010-04-19 10:16:25 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2010-04-19 10:16:25 +0000 |
| commit | c3dbe9d50991cd749491633787c529b101fa04be (patch) | |
| tree | 3ab00c230a334086307a4aa5da27725b04c5b4d9 /tests/regressiontests/admin_views | |
| parent | 1ad9c36fb8cba9e2687b2ebb2d69ed4ccef58885 (diff) | |
Fixed #13361 - Made sure jQuery is always included in the admin changelist and changeform. Thanks to Carl Meyer for report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12997 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/admin_views')
| -rw-r--r-- | tests/regressiontests/admin_views/tests.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/regressiontests/admin_views/tests.py b/tests/regressiontests/admin_views/tests.py index f15f61781a..abb28de38b 100644 --- a/tests/regressiontests/admin_views/tests.py +++ b/tests/regressiontests/admin_views/tests.py @@ -1386,6 +1386,14 @@ class AdminActionsTest(TestCase): self.assert_('action-checkbox-column' not in response.content, "Found unexpected action-checkbox-column class in response") + def test_model_without_action_still_has_jquery(self): + "Tests that a ModelAdmin without any actions still gets jQuery included in page" + response = self.client.get('/test_admin/admin/admin_views/oldsubscriber/') + self.assertEquals(response.context["action_form"], None) + self.assert_('jquery.min.js' in response.content, + "jQuery missing from admin pages for model with no admin actions" + ) + def test_action_column_class(self): "Tests that the checkbox column class is present in the response" response = self.client.get('/test_admin/admin/admin_views/subscriber/') |
