Skip to content

Commit c6b737c

Browse files
committed
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
1 parent e889b69 commit c6b737c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/ref/contrib/admin/index.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,8 @@ with an operator:
647647

648648
.. attribute:: ModelAdmin.formfield_overrides
649649

650+
.. versionadded:: 1.1
651+
650652
This provides a quick-and-dirty way to override some of the
651653
:class:`~django.forms.Field` options for use in the admin.
652654
``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
687689

688690
.. attribute:: ModelAdmin.actions
689691

692+
.. versionadded:: 1.1
693+
690694
A list of actions to make available on the change list page. See
691695
:ref:`ref-contrib-admin-actions` for details.
692696

693697
.. attribute:: ModelAdmin.actions_on_top
694698
.. attribute:: ModelAdmin.actions_on_bottom
695699

700+
.. versionadded:: 1.1
701+
696702
Controls where on the page the actions bar appears. By default, the admin
697703
changelist displays actions at the top of the page (``actions_on_top = True;
698704
actions_on_bottom = False``).
699705

700706
.. attribute:: ModelAdmin.actions_selection_counter
701707

708+
.. versionadded:: 1.2
709+
702710
Controls whether a selection counter is display next to the action dropdown.
703711
By default, the admin changelist will display it
704712
(``actions_selection_counter = True``).
@@ -714,6 +722,8 @@ that provides the standard appearance is used.
714722

715723
.. attribute:: ModelAdmin.add_form_template
716724

725+
.. versionadded:: 1.2
726+
717727
Path to a custom template that will be used by the model object creation
718728
views. Templates can override or extend base admin templates as described in
719729
`Overriding Admin Templates`_.
@@ -1036,6 +1046,8 @@ This controls the number of extra forms the formset will display in addition
10361046
to the initial forms. See the
10371047
:ref:`formsets documentation <topics-forms-formsets>` for more information.
10381048

1049+
.. versionadded:: 1.2
1050+
10391051
Extra forms for inlines will be hidden and replaced with a link to dynamically
10401052
add any number of new inlines for users with Javascript enabled.
10411053

@@ -1392,15 +1404,21 @@ Path to a custom template that will be used by the admin site login view.
13921404

13931405
.. attribute:: AdminSite.logout_template
13941406

1407+
.. versionadded:: 1.2
1408+
13951409
Path to a custom template that will be used by the admin site logout view.
13961410

13971411
.. attribute:: AdminSite.password_change_template
13981412

1413+
.. versionadded:: 1.2
1414+
13991415
Path to a custom template that will be used by the admin site password change
14001416
view.
14011417

14021418
.. attribute:: AdminSite.password_change_done_template
14031419

1420+
.. versionadded:: 1.2
1421+
14041422
Path to a custom template that will be used by the admin site password change
14051423
done view.
14061424

0 commit comments

Comments
 (0)