`
+ """
+
last_name = models.CharField(max_length=200)
diff --git a/tests/admin_docs/test_views.py b/tests/admin_docs/test_views.py
index c48a89a1b0..f7232a7e03 100644
--- a/tests/admin_docs/test_views.py
+++ b/tests/admin_docs/test_views.py
@@ -441,6 +441,25 @@ class TestModelDetailView(TestDataMixin, AdminDocsTestCase):
self.assertContains(self.response, body, html=True)
self.assertContains(self.response, model_body, html=True)
+ def test_model_docstring_built_in_tag_links(self):
+ summary = "Links with different link text."
+ body = (
+ 'This is a line with tag extends\n'
+ 'This is a line with model Family\n'
+ 'This is a line with view Index\n'
+ 'This is a line with template index template\n'
+ 'This is a line with filter example filter
'
+ )
+ url = reverse("django-admindocs-models-detail", args=["admin_docs", "family"])
+ response = self.client.get(url)
+ self.assertContains(response, summary, html=True)
+ self.assertContains(response, body, html=True)
+
def test_model_detail_title(self):
self.assertContains(self.response, "admin_docs.Person
", html=True)