1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fixed #13524 -- Added backwards compatibility and feature notes regarding admin inlines and formsets. Thanks to Ramiro Morales and Gabriel Hurley.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee
2010-05-12 11:56:42 +00:00
parent b8ed827952
commit d0d3e6792d
6 changed files with 114 additions and 17 deletions

View File

@@ -1053,6 +1053,8 @@ The value for ``form`` defaults to ``ModelForm``. This is what is
passed through to ``inlineformset_factory`` when creating the formset for this
inline.
.. _ref-contrib-admin-inline-extra:
``extra``
~~~~~~~~~
@@ -1062,8 +1064,15 @@ to the initial forms. See the
.. 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.
For users with JavaScript-enabled browsers, an "Add another" link is
provided to enable any number of additional inlines to be added in
addition to those provided as a result of the ``extra`` argument.
The dynamic link will not appear if the number of currently displayed
forms exceeds ``max_num``, or if the user does not have JavaScript
enabled.
.. _ref-contrib-admin-inline-max-num:
``max_num``
~~~~~~~~~~~