mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Removed references to changes made in 1.2.
Thanks Florian Apolloner for the patch.
This commit is contained in:
parent
6492e8e5e6
commit
c28e700c7e
46 changed files with 22 additions and 474 deletions
|
@ -102,15 +102,12 @@ limit the maximum number of empty forms the formset will display::
|
|||
<tr><th><label for="id_form-0-title">Title:</label></th><td><input type="text" name="form-0-title" id="id_form-0-title" /></td></tr>
|
||||
<tr><th><label for="id_form-0-pub_date">Pub date:</label></th><td><input type="text" name="form-0-pub_date" id="id_form-0-pub_date" /></td></tr>
|
||||
|
||||
.. versionchanged:: 1.2
|
||||
|
||||
If the value of ``max_num`` is greater than the number of existing
|
||||
objects, up to ``extra`` additional blank forms will be added to the formset,
|
||||
so long as the total number of forms does not exceed ``max_num``.
|
||||
|
||||
A ``max_num`` value of ``None`` (the default) puts no limit on the number of
|
||||
forms displayed. Please note that the default value of ``max_num`` was changed
|
||||
from ``0`` to ``None`` in version 1.2 to allow ``0`` as a valid value.
|
||||
forms displayed.
|
||||
|
||||
Formset validation
|
||||
------------------
|
||||
|
@ -210,8 +207,6 @@ pre-filled, and is also used to determine how many forms are required. You
|
|||
will probably never need to override either of these methods, so please be
|
||||
sure you understand what they do before doing so.
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
``empty_form``
|
||||
~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
@ -109,9 +109,6 @@ Model field Form field
|
|||
``URLField`` ``URLField``
|
||||
=============================== ========================================
|
||||
|
||||
.. versionadded:: 1.2
|
||||
The ``BigIntegerField`` is new in Django 1.2.
|
||||
|
||||
|
||||
As you might expect, the ``ForeignKey`` and ``ManyToManyField`` model field
|
||||
types are special cases:
|
||||
|
@ -362,9 +359,6 @@ Since the Author model has only 3 fields, 'name', 'title', and
|
|||
Overriding the default field types or widgets
|
||||
---------------------------------------------
|
||||
|
||||
.. versionadded:: 1.2
|
||||
The ``widgets`` attribute is new in Django 1.2.
|
||||
|
||||
The default field types, as described in the `Field types`_ table above, are
|
||||
sensible defaults. If you have a ``DateField`` in your model, chances are you'd
|
||||
want that to be represented as a ``DateField`` in your form. But
|
||||
|
@ -670,8 +664,6 @@ are saved properly.
|
|||
Limiting the number of editable objects
|
||||
---------------------------------------
|
||||
|
||||
.. versionchanged:: 1.2
|
||||
|
||||
As with regular formsets, you can use the ``max_num`` and ``extra`` parameters
|
||||
to ``modelformset_factory`` to limit the number of extra forms displayed.
|
||||
|
||||
|
@ -698,8 +690,6 @@ so long as the total number of forms does not exceed ``max_num``::
|
|||
<tr><th><label for="id_form-2-name">Name:</label></th><td><input id="id_form-2-name" type="text" name="form-2-name" value="Walt Whitman" maxlength="100" /><input type="hidden" name="form-2-id" value="2" id="id_form-2-id" /></td></tr>
|
||||
<tr><th><label for="id_form-3-name">Name:</label></th><td><input id="id_form-3-name" type="text" name="form-3-name" maxlength="100" /><input type="hidden" name="form-3-id" id="id_form-3-id" /></td></tr>
|
||||
|
||||
.. versionchanged:: 1.2
|
||||
|
||||
A ``max_num`` value of ``None`` (the default) puts no limit on the number of
|
||||
forms displayed.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue