diff options
| author | sai-ganesh-03 <sandursaiganesh@gmail.com> | 2024-11-03 11:03:48 +0530 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-11-06 14:39:18 +0100 |
| commit | c2c544cf01107da158cb8c0c539555eafa0628db (patch) | |
| tree | d3387e60d7e0e9f5a0c59648c31473fc2836567f /tests/admin_docs/models.py | |
| parent | 78c9a2703151432f8e35cb63fca5a566fee5f8ed (diff) | |
Fixed #27409 -- Made admindocs support custom link text in docstrings.
Diffstat (limited to 'tests/admin_docs/models.py')
| -rw-r--r-- | tests/admin_docs/models.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/admin_docs/models.py b/tests/admin_docs/models.py index b4ef84caba..4b52b4a4ea 100644 --- a/tests/admin_docs/models.py +++ b/tests/admin_docs/models.py @@ -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) |
