10000 Updated links in admin docs to use :ref: · alex-python/django@13409b9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 13409b9

Browse files
Aleriontimgraham
authored andcommitted
Updated links in admin docs to use :ref:
per Sphinx docs: "Using ref is advised over standard reStructuredText links to sections because it works across files, when section headings are changed, and for all builders that support cross-references.
1 parent 2f16ff5 commit 13409b9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/ref/contrib/admin/index.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ subclass::
413413
form rather than specifying an entirely new one by using the
414414
:meth:`ModelAdmin.get_form` method.
415415

416-
For an example see the section `Adding custom validation to the admin`_.
416+
For an example see the section :ref:`admin-custom-validation`.
417417

418418
.. admonition:: Note
419419

@@ -1207,7 +1207,7 @@ subclass::
12071207
Custom template options
12081208
~~~~~~~~~~~~~~~~~~~~~~~
12091209

1210-
The `Overriding Admin Templates`_ section describes how to override or extend
1210+
The :ref:`admin-overriding-templates` section describes how to override or extend
12111211
the default admin templates. Use the following options to override the default
12121212
templates used by the :class:`ModelAdmin` views:
12131213

@@ -1861,6 +1861,8 @@ return the uncompressed versions of the various JavaScript files, including
18611861

18621862
.. _jQuery: http://jquery.com
18631863

1864+
.. _admin-custom-validation:
1865+
18641866
Adding custom validation to the admin
18651867
-------------------------------------
18661868

@@ -2306,6 +2308,8 @@ other inline. In your ``admin.py`` for this example app::
23062308
See the :doc:`contenttypes documentation </ref/contrib/contenttypes>` for more
23072309
specific information.
23082310

2311+
.. _admin-overriding-templates:
2312+
23092313
Overriding admin templates
23102314
==========================
23112315

@@ -2442,7 +2446,7 @@ creating your own ``AdminSite`` instance (see below), and changing the
24422446
------------------------
24432447

24442448
Templates can override or extend base admin templates as described in
2445-
`Overriding Admin Templates`_.
2449+
:ref:`admin-overriding-templates`.
24462450

24472451
.. attribute:: AdminSite.site_header
24482452

0 commit comments

Comments
 (0)
0