diff options
| author | Jannis Leidel <jannis@leidel.info> | 2010-01-12 23:34:46 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2010-01-12 23:34:46 +0000 |
| commit | a2056919799e48f053fa16b65569fc1e8f57ebe1 (patch) | |
| tree | f31347588a67ce910973d221396c2100b4e155b2 /docs | |
| parent | 31f3a8c1ad3b6ec33c503241484107bf35cdadba (diff) | |
Fixed #8933 - Allow more admin templates to be overridden.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12217 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index fce694d6ac..761c501b04 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1343,9 +1343,10 @@ and 500 pages. Root and login templates ------------------------ -If you wish to change the index or login templates, you are better off creating -your own ``AdminSite`` instance (see below), and changing the :attr:`AdminSite.index_template` -or :attr:`AdminSite.login_template` properties. +If you wish to change the index, login or logout templates, you are better off +creating your own ``AdminSite`` instance (see below), and changing the +:attr:`AdminSite.index_template` , :attr:`AdminSite.login_template` or +:attr:`AdminSite.logout_template` properties. ``AdminSite`` objects ===================== @@ -1375,17 +1376,30 @@ provided, a default instance name of ``admin`` will be used. ``AdminSite`` attributes ------------------------ +Templates can override or extend base admin templates as described in +`Overriding Admin Templates`_. + .. attribute:: AdminSite.index_template Path to a custom template that will be used by the admin site main index view. -Templates can override or extend base admin templates as described in -`Overriding Admin Templates`_. .. attribute:: AdminSite.login_template Path to a custom template that will be used by the admin site login view. -Templates can override or extend base admin templates as described in -`Overriding Admin Templates`_. + +.. attribute:: AdminSite.logout_template + +Path to a custom template that will be used by the admin site logout view. + +.. attribute:: AdminSite.password_change_template + +Path to a custom template that will be used by the admin site password change +view. + +.. attribute:: AdminSite.password_change_done_template + +Path to a custom template that will be used by the admin site password change +done view. Hooking ``AdminSite`` instances into your URLconf ------------------------------------------------- |
