From 1ed31efb8753f6c4fd263033ddebc2f008e43a68 Mon Sep 17 00:00:00 2001 From: Paul Donohue Date: Sun, 8 Apr 2018 13:35:24 -0400 Subject: [2.0.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 b9955717f4..dbb48f8ac3 100644 --- a/tests/admin_docs/test_views.py +++ b/tests/admin_docs/test_views.py @@ -51,6 +51,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, + ) def test_view_index_with_method(self): """ -- cgit v1.3