mirror of https://github.com/django/django.git
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:
parent
e889b69dd2
commit
c6b737c243
|
@ -647,6 +647,8 @@ with an operator:
|
|||
|
||||
.. attribute:: ModelAdmin.formfield_overrides
|
||||
|
||||
.. versionadded:: 1.1
|
||||
|
||||
This provides a quick-and-dirty way to override some of the
|
||||
:class:`~django.forms.Field` options for use in the admin.
|
||||
``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
|
||||
|
||||
.. versionadded:: 1.1
|
||||
|
||||
A list of actions to make available on the change list page. See
|
||||
:ref:`ref-contrib-admin-actions` for details.
|
||||
|
||||
.. attribute:: ModelAdmin.actions_on_top
|
||||
.. attribute:: ModelAdmin.actions_on_bottom
|
||||
|
||||
.. versionadded:: 1.1
|
||||
|
||||
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;
|
||||
actions_on_bottom = False``).
|
||||
|
||||
.. attribute:: ModelAdmin.actions_selection_counter
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
Controls whether a selection counter is display next to the action dropdown.
|
||||
By default, the admin changelist will display it
|
||||
(``actions_selection_counter = True``).
|
||||
|
@ -714,6 +722,8 @@ that provides the standard appearance is used.
|
|||
|
||||
.. 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`_.
|
||||
|
@ -1036,6 +1046,8 @@ This controls the number of extra forms the formset will display in addition
|
|||
to the initial forms. See the
|
||||
: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
|
||||
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
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
Path to a custom template that will be used by the admin site logout view.
|
||||
|
||||
.. attribute:: AdminSite.password_change_template
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
Path to a custom template that will be used by the admin site password change
|
||||
view.
|
||||
|
||||
.. attribute:: AdminSite.password_change_done_template
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
Path to a custom template that will be used by the admin site password change
|
||||
done view.
|
||||
|
||||
|
|
Loading…
Reference in New Issue