From 979253fce9c0bb6ee484a5a786d477a47545d972 Mon Sep 17 00:00:00 2001 From: Paul Donohue Date: Sun, 8 Apr 2018 13:35:24 -0400 Subject: [1.11.x] Fixed #29296 -- Fixed crashes in admindocs when a view is a callable object. Backport of 33a0b7ac815588ed92dca215e153390af8bdbdda from master --- tests/admin_docs/test_views.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/admin_docs/test_views.py') diff --git a/tests/admin_docs/test_views.py b/tests/admin_docs/test_views.py index bd483007c7..cf4f9359c7 100644 --- a/tests/admin_docs/test_views.py +++ b/tests/admin_docs/test_views.py @@ -54,6 +54,12 @@ class AdminDocViewTests(TestDataMixin, AdminDocsTestCase): ) self.assertContains(response, 'Views by namespace test') self.assertContains(response, 'Name: test:func.') + self.assertContains( + response, + '

' + '/xview/callable_object_without_xview/

', + html=True, + ) @unittest.skipIf(six.PY2, "Python 2 doesn't support __qualname__.") def test_view_index_with_method(self): -- cgit v1.3