mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #27409 -- Made admindocs support custom link text in docstrings.
This commit is contained in:
parent
78c9a27031
commit
c2c544cf01
5 changed files with 60 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue