diff options
| author | Paul Donohue <git@PaulSD.com> | 2018-04-08 13:35:24 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-04-12 13:11:53 -0400 |
| commit | 1ed31efb8753f6c4fd263033ddebc2f008e43a68 (patch) | |
| tree | 085ef498db188ea54a98a4a0ccfe3d8a8ad4976a /tests/admin_docs/test_views.py | |
| parent | d5018abf1c4e3c68f1a825d05eb9035325707e16 (diff) | |
[2.0.x] Fixed #29296 -- Fixed crashes in admindocs when a view is a callable object.
Backport of 33a0b7ac815588ed92dca215e153390af8bdbdda from master
Diffstat (limited to 'tests/admin_docs/test_views.py')
| -rw-r--r-- | tests/admin_docs/test_views.py | 6 |
1 files changed, 6 insertions, 0 deletions
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: <code>test:func</code>.') + self.assertContains( + response, + '<h3><a href="/admindocs/views/admin_docs.views.XViewCallableObject/">' + '/xview/callable_object_without_xview/</a></h3>', + html=True, + ) def test_view_index_with_method(self): """ |
