8000 [1.7.x] Updated links in admin docs to use :ref: · alex-python/django@2999bf0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2999bf0

Browse files
Aleriontimgraham
authored andcommitted
[1.7.x] Updated links in admin docs to use :ref:
per Sphinx docs: "Using ref is advised over standard reStruct 8000 uredText links to sections because it works across files, when section headings are changed, and for all builders that support cross-references. Backport of 13409b9 from master
1 parent f8d8459 commit 2999bf0

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
@@ -417,7 +417,7 @@ subclass::
417417
form rather than specifying an entirely new one by using the
418418
:meth:`ModelAdmin.get_form` method.
419419

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

422422
.. admonition:: Note
423423

@@ -1192,7 +1192,7 @@ subclass::
11921192
Custom template options
11931193
~~~~~~~~~~~~~~~~~~~~~~~
11941194

1195-
The `Overriding Admin Templates`_ section describes how to override or extend
1195+
The :ref:`admin-overriding-templates` section describes how to override or extend
11961196
the default admin templates. Use the following options to override the default
11971197
templates used by the :class:`ModelAdmin` views:
11981198

@@ -1841,6 +1841,8 @@ return the uncompressed versions of the various JavaScript files, including
18411841

18421842
.. _jQuery: http://jquery.com
18431843

1844+
.. _admin-custom-validation:
1845+
18441846
Adding custom validation to the admin
18451847
-------------------------------------
18461848

@@ -2286,6 +2288,8 @@ other inline. In your ``admin.py`` for this example app::
22862288
See the :doc:`contenttypes documentation </ref/contrib/contenttypes>` for more
22872289
specific information.
22882290

2291+
.. _admin-overriding-templates:
2292+
22892293
Overriding admin templates
22902294
==========================
22912295

@@ -2422,7 +2426,7 @@ creating your own ``AdminSite`` instance (see below), and changing the
24222426
------------------------
24232427

24242428
Templates can override or extend base admin templates as described in
2425-
`Overriding Admin Templates`_.
2429+
:ref:`admin-overriding-templates`.
24262430

24272431
.. attribute:: AdminSite.site_header
24282432

0 commit comments

Comments
 (0)
0