Fixed #12987 - Added a few versionadded directives to the admin docs. Thanks, Ramiro Morales.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12630 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel 2010-03-01 14:43:26 +00:00
parent e889b69dd2
commit c6b737c243
1 changed files with 18 additions and 0 deletions

View File

@ -647,6 +647,8 @@ with an operator:
.. attribute:: ModelAdmin.formfield_overrides .. attribute:: ModelAdmin.formfield_overrides
.. versionadded:: 1.1
This provides a quick-and-dirty way to override some of the This provides a quick-and-dirty way to override some of the
:class:`~django.forms.Field` options for use in the admin. :class:`~django.forms.Field` options for use in the admin.
``formfield_overrides`` is a dictionary mapping a field class to a dict of ``formfield_overrides`` is a dictionary mapping a field class to a dict of
@ -687,18 +689,24 @@ The value is another dictionary; these arguments will be passed to
.. attribute:: ModelAdmin.actions .. attribute:: ModelAdmin.actions
.. versionadded:: 1.1
A list of actions to make available on the change list page. See A list of actions to make available on the change list page. See
:ref:`ref-contrib-admin-actions` for details. :ref:`ref-contrib-admin-actions` for details.
.. attribute:: ModelAdmin.actions_on_top .. attribute:: ModelAdmin.actions_on_top
.. attribute:: ModelAdmin.actions_on_bottom .. attribute:: ModelAdmin.actions_on_bottom
.. versionadded:: 1.1
Controls where on the page the actions bar appears. By default, the admin Controls where on the page the actions bar appears. By default, the admin
changelist displays actions at the top of the page (``actions_on_top = True; changelist displays actions at the top of the page (``actions_on_top = True;
actions_on_bottom = False``). actions_on_bottom = False``).
.. attribute:: ModelAdmin.actions_selection_counter .. attribute:: ModelAdmin.actions_selection_counter
.. versionadded:: 1.2
Controls whether a selection counter is display next to the action dropdown. 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``).
@ -714,6 +722,8 @@ that provides the standard appearance is used.
.. attribute:: ModelAdmin.add_form_template .. attribute:: ModelAdmin.add_form_template
.. versionadded:: 1.2
Path to a custom template that will be used by the model object creation 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 views. Templates can override or extend base admin templates as described in
`Overriding Admin Templates`_. `Overriding Admin Templates`_.
@ -1036,6 +1046,8 @@ This controls the number of extra forms the formset will display in addition
to the initial forms. See the to the initial forms. See the
:ref:`formsets documentation <topics-forms-formsets>` for more information. :ref:`formsets documentation <topics-forms-formsets>` for more information.
.. versionadded:: 1.2
Extra forms for inlines will be hidden and replaced with a link to dynamically Extra forms for inlines will be hidden and replaced with a link to dynamically
add any number of new inlines for users with Javascript enabled. add any number of new inlines for users with Javascript enabled.
@ -1392,15 +1404,21 @@ Path to a custom template that will be used by the admin site login view.
.. attribute:: AdminSite.logout_template .. attribute:: AdminSite.logout_template
.. versionadded:: 1.2
Path to a custom template that will be used by the admin site logout view. Path to a custom template that will be used by the admin site logout view.
.. attribute:: AdminSite.password_change_template .. attribute:: AdminSite.password_change_template
.. versionadded:: 1.2
Path to a custom template that will be used by the admin site password change Path to a custom template that will be used by the admin site password change
view. view.
.. attribute:: AdminSite.password_change_done_template .. attribute:: AdminSite.password_change_done_template
.. versionadded:: 1.2
Path to a custom template that will be used by the admin site password change Path to a custom template that will be used by the admin site password change
done view. done view.