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.
This commit is contained in:
parent
2f16ff5a6c
commit
13409b932a
|
@ -413,7 +413,7 @@ subclass::
|
||||||
form rather than specifying an entirely new one by using the
|
form rather than specifying an entirely new one by using the
|
||||||
:meth:`ModelAdmin.get_form` method.
|
:meth:`ModelAdmin.get_form` method.
|
||||||
|
|
||||||
For an example see the section `Adding custom validation to the admin`_.
|
For an example see the section :ref:`admin-custom-validation`.
|
||||||
|
|
||||||
.. admonition:: Note
|
.. admonition:: Note
|
||||||
|
|
||||||
|
@ -1207,7 +1207,7 @@ subclass::
|
||||||
Custom template options
|
Custom template options
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
The `Overriding Admin Templates`_ section describes how to override or extend
|
The :ref:`admin-overriding-templates` section describes how to override or extend
|
||||||
the default admin templates. Use the following options to override the default
|
the default admin templates. Use the following options to override the default
|
||||||
templates used by the :class:`ModelAdmin` views:
|
templates used by the :class:`ModelAdmin` views:
|
||||||
|
|
||||||
|
@ -1861,6 +1861,8 @@ return the uncompressed versions of the various JavaScript files, including
|
||||||
|
|
||||||
.. _jQuery: http://jquery.com
|
.. _jQuery: http://jquery.com
|
||||||
|
|
||||||
|
.. _admin-custom-validation:
|
||||||
|
|
||||||
Adding custom validation to the admin
|
Adding custom validation to the admin
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
|
@ -2306,6 +2308,8 @@ other inline. In your ``admin.py`` for this example app::
|
||||||
See the :doc:`contenttypes documentation </ref/contrib/contenttypes>` for more
|
See the :doc:`contenttypes documentation </ref/contrib/contenttypes>` for more
|
||||||
specific information.
|
specific information.
|
||||||
|
|
||||||
|
.. _admin-overriding-templates:
|
||||||
|
|
||||||
Overriding admin templates
|
Overriding admin templates
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
|
@ -2442,7 +2446,7 @@ creating your own ``AdminSite`` instance (see below), and changing the
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
Templates can override or extend base admin templates as described in
|
Templates can override or extend base admin templates as described in
|
||||||
`Overriding Admin Templates`_.
|
:ref:`admin-overriding-templates`.
|
||||||
|
|
||||||
.. attribute:: AdminSite.site_header
|
.. attribute:: AdminSite.site_header
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue