Fixed #27409 -- Made admindocs support custom link text in docstrings.

This commit is contained in:
sai-ganesh-03 2024-11-03 11:03:48 +05:30 committed by Sarah Boyce
parent 78c9a27031
commit c2c544cf01
5 changed files with 60 additions and 3 deletions

View file

@ -15,6 +15,16 @@ class Group(models.Model):
class Family(models.Model):
"""
Links with different link text.
This is a line with tag :tag:`extends <built_in-extends>`
This is a line with model :model:`Family <myapp.Family>`
This is a line with view :view:`Index <myapp.views.Index>`
This is a line with template :template:`index template <Index.html>`
This is a line with filter :filter:`example filter <filtername>`
"""
last_name = models.CharField(max_length=200)