From 2999bf055a121aaa8cc5da7e11fe513107e88f7d Mon Sep 17 00:00:00 2001 From: Kostochko Dmitriy Date: Mon, 6 Oct 2014 15:59:04 +0300 Subject: [PATCH] [1.7.x] 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. Backport of 13409b932a from master --- docs/ref/contrib/admin/index.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 51b9ad9f42..1dd302ae9e 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -417,7 +417,7 @@ subclass:: form rather than specifying an entirely new one by using the :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 @@ -1192,7 +1192,7 @@ subclass:: 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 templates used by the :class:`ModelAdmin` views: @@ -1841,6 +1841,8 @@ return the uncompressed versions of the various JavaScript files, including .. _jQuery: http://jquery.com +.. _admin-custom-validation: + Adding custom validation to the admin ------------------------------------- @@ -2286,6 +2288,8 @@ other inline. In your ``admin.py`` for this example app:: See the :doc:`contenttypes documentation ` for more specific information. +.. _admin-overriding-templates: + Overriding admin templates ========================== @@ -2422,7 +2426,7 @@ creating your own ``AdminSite`` instance (see below), and changing the ------------------------ Templates can override or extend base admin templates as described in -`Overriding Admin Templates`_. +:ref:`admin-overriding-templates`. .. attribute:: AdminSite.site_header