diff options
| author | Gary Wilson Jr <gary.wilson@gmail.com> | 2010-03-27 21:12:56 +0000 |
|---|---|---|
| committer | Gary Wilson Jr <gary.wilson@gmail.com> | 2010-03-27 21:12:56 +0000 |
| commit | 2a6f14b93013f9918d576b2d4f65e7cf434c788d (patch) | |
| tree | dc95d59f19523c89761452184315a721c4fff21f /docs | |
| parent | ca4c6f65ea81109cf6fbdba74da7f5027eb0c4db (diff) | |
Fixed #13103 -- A bit of re-organization to the custom template `ModelAdmin` options documentation section to remove some duplication and fix some confusing wording.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12868 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 47 |
1 files changed, 15 insertions, 32 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 649ddc20fc..e80af72f46 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -711,53 +711,36 @@ Controls whether a selection counter is display next to the action dropdown. By default, the admin changelist will display it (``actions_selection_counter = True``). -.. attribute:: ModelAdmin.change_list_template - -Path to a custom template that will be used by the model objects "change list" -view. Templates can override or extend base admin templates as described in -`Overriding Admin Templates`_. +Custom template options +~~~~~~~~~~~~~~~~~~~~~~~ -If you don't specify this attribute, a default template shipped with Django -that provides the standard appearance is used. +The `Overriding Admin 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: .. attribute:: ModelAdmin.add_form_template -.. versionadded:: 1.2 - -Path to a custom template that will be used by the model object creation -views. Templates can override or extend base admin templates as described in -`Overriding Admin Templates`_. + .. versionadded:: 1.2 -If you don't specify this attribute, a default template shipped with Django -that provides the standard appearance is used. + Path to a custom template, used by :meth:`add_view`. .. attribute:: ModelAdmin.change_form_template -Path to a custom template that will be used by the model object change views. -Templates can override or extend base admin templates as described in -`Overriding Admin Templates`_. + Path to a custom template, used by :meth:`change_view`. -If you don't specify this attribute, a default template shipped with Django -that provides the standard appearance is used. +.. attribute:: ModelAdmin.change_list_template -.. attribute:: ModelAdmin.object_history_template + Path to a custom template, used by :meth:`changelist_view`. -Path to a custom template that will be used by the model object change history -display view. Templates can override or extend base admin templates as -described in `Overriding Admin Templates`_. +.. attribute:: ModelAdmin.delete_confirmation_template -If you don't specify this attribute, a default template shipped with Django -that provides the standard appearance is used. + Path to a custom template, used by :meth:`delete_view` for displaying a + confirmation page when deleting one or more objects. -.. attribute:: ModelAdmin.delete_confirmation_template +.. attribute:: ModelAdmin.object_history_template -Path to a custom template that will be used by the view responsible of showing -the confirmation page when the user decides to delete one or more model -objects. Templates can override or extend base admin templates as described in -`Overriding Admin Templates`_. + Path to a custom template, used by :meth:`history_view`. -If you don't specify this attribute, a default template shipped with Django -that provides the standard appearance is used. .. _model-admin-methods: |
