mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #29296 -- Fixed crashes in admindocs when a view is a callable object.
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user