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
This commit is contained in:
parent
ca4c6f65ea
commit
2a6f14b930
|
@ -711,53 +711,36 @@ Controls whether a selection counter is display next to the action dropdown.
|
||||||
By default, the admin changelist will display it
|
By default, the admin changelist will display it
|
||||||
(``actions_selection_counter = True``).
|
(``actions_selection_counter = True``).
|
||||||
|
|
||||||
.. attribute:: ModelAdmin.change_list_template
|
Custom template options
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Path to a custom template that will be used by the model objects "change list"
|
The `Overriding Admin Templates`_ section describes how to override or extend
|
||||||
view. Templates can override or extend base admin templates as described in
|
the default admin templates. Use the following options to override the default
|
||||||
`Overriding Admin Templates`_.
|
templates used by the :class:`ModelAdmin` views:
|
||||||
|
|
||||||
If you don't specify this attribute, a default template shipped with Django
|
|
||||||
that provides the standard appearance is used.
|
|
||||||
|
|
||||||
.. attribute:: ModelAdmin.add_form_template
|
.. attribute:: ModelAdmin.add_form_template
|
||||||
|
|
||||||
.. versionadded:: 1.2
|
.. versionadded:: 1.2
|
||||||
|
|
||||||
Path to a custom template that will be used by the model object creation
|
Path to a custom template, used by :meth:`add_view`.
|
||||||
views. Templates can override or extend base admin templates as described in
|
|
||||||
`Overriding Admin Templates`_.
|
|
||||||
|
|
||||||
If you don't specify this attribute, a default template shipped with Django
|
|
||||||
that provides the standard appearance is used.
|
|
||||||
|
|
||||||
.. attribute:: ModelAdmin.change_form_template
|
.. attribute:: ModelAdmin.change_form_template
|
||||||
|
|
||||||
Path to a custom template that will be used by the model object change views.
|
Path to a custom template, used by :meth:`change_view`.
|
||||||
Templates can override or extend base admin templates as described in
|
|
||||||
`Overriding Admin Templates`_.
|
|
||||||
|
|
||||||
If you don't specify this attribute, a default template shipped with Django
|
.. attribute:: ModelAdmin.change_list_template
|
||||||
that provides the standard appearance is used.
|
|
||||||
|
|
||||||
.. 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`_.
|
|
||||||
|
|
||||||
If you don't specify this attribute, a default template shipped with Django
|
|
||||||
that provides the standard appearance is used.
|
|
||||||
|
|
||||||
.. attribute:: ModelAdmin.delete_confirmation_template
|
.. attribute:: ModelAdmin.delete_confirmation_template
|
||||||
|
|
||||||
Path to a custom template that will be used by the view responsible of showing
|
Path to a custom template, used by :meth:`delete_view` for displaying a
|
||||||
the confirmation page when the user decides to delete one or more model
|
confirmation page when deleting one or more objects.
|
||||||
objects. Templates can override or extend base admin templates as described in
|
|
||||||
`Overriding Admin Templates`_.
|
.. attribute:: ModelAdmin.object_history_template
|
||||||
|
|
||||||
|
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:
|
.. _model-admin-methods:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue