Kaydet (Commit) 5ca290f5 authored tarafından Tim Graham's avatar Tim Graham

Fixed some sphinx errors and added some links.

üst db3de528
...@@ -2175,17 +2175,23 @@ Templates can override or extend base admin templates as described in ...@@ -2175,17 +2175,23 @@ Templates can override or extend base admin templates as described in
`Overriding Admin Templates`_. `Overriding Admin Templates`_.
.. attribute:: AdminSite.site_header .. attribute:: AdminSite.site_header
.. versionadded:: 1.7
.. versionadded:: 1.7
The text to put at the top of each admin page, as an ``<h1>`` (a string). The text to put at the top of each admin page, as an ``<h1>`` (a string).
By default, this is "Django administration". By default, this is "Django administration".
.. attribute:: AdminSite.site_title .. attribute:: AdminSite.site_title
.. versionadded:: 1.7
.. versionadded:: 1.7
The text to put at the end of each admin page's ``<title>`` (a string). By The text to put at the end of each admin page's ``<title>`` (a string). By
default, this is "Django site admin". default, this is "Django site admin".
.. attribute:: AdminSite.index_title .. attribute:: AdminSite.index_title
.. versionadded:: 1.7
.. versionadded:: 1.7
The text to put at the top of the admin index page (a string). By default, The text to put at the top of the admin index page (a string). By default,
this is "Site administration". this is "Site administration".
......
...@@ -111,8 +111,10 @@ Minor features ...@@ -111,8 +111,10 @@ Minor features
:mod:`django.contrib.admin` :mod:`django.contrib.admin`
^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
* You can now implement ``site_header``, ``site_title`` and ``index_title`` * You can now implement :attr:`~django.contrib.admin.AdminSite.site_header`,
attributes on a custom ``AdminSite`` in order to easily change the admin :attr:`~django.contrib.admin.AdminSite.site_title`, and
:attr:`~django.contrib.admin.AdminSite.index_title` attributes on a custom
:class:`~django.contrib.admin.AdminSite` in order to easily change the admin
site's page title and header text. No more needing to override templates! site's page title and header text. No more needing to override templates!
* Buttons in :mod:`django.contrib.admin` now use the ``border-radius`` CSS * Buttons in :mod:`django.contrib.admin` now use the ``border-radius`` CSS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment