diff options
| author | Tim Graham <timograham@gmail.com> | 2015-02-12 13:40:23 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-02-12 14:19:44 -0500 |
| commit | d64baaef3b95abe9ae5d07317c9bf4df02cb8592 (patch) | |
| tree | 6d2ca2967f2b48ba39496fc1f4acb67d3308104a /tests/admin_views | |
| parent | a93c5fb2bfbadd4628a2a5d6b6aecbd64bd527cb (diff) | |
Fixed #24333 -- Fixed admin history view crash with non-integer slug.
Diffstat (limited to 'tests/admin_views')
| -rw-r--r-- | tests/admin_views/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 9b6c3db8de..a2c742f3ed 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -1551,6 +1551,11 @@ class AdminViewPermissionsTest(TestCase): self.client.get(reverse('admin:logout')) + def test_history_view_bad_url(self): + self.client.post(reverse('admin:login'), self.changeuser_login) + response = self.client.get(reverse('admin:admin_views_article_history', args=('foo',))) + self.assertEqual(response.status_code, 404) + def test_conditionally_show_add_section_link(self): """ The foreign key widget should only show the "add related" button if the |
