0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00
django/docs/releases
Andrew Gorcester f9ab543720 Fixed #20084 -- Provided option to validate formset max_num on server.
This is provided as a new "validate_max" formset_factory option defaulting to
False, since the non-validating behavior of max_num is longstanding, and there
is certainly code relying on it. (In fact, even the Django admin relies on it
for the case where there are more existing inlines than the given max_num). It
may be that at some point we want to deprecate validate_max=False and
eventually remove the option, but this commit takes no steps in that direction.

This also fixes the DoS-prevention absolute_max enforcement so that it causes a
form validation error rather than an IndexError, and ensures that absolute_max
is always 1000 more than max_num, to prevent surprising changes in behavior
with max_num close to absolute_max.

Lastly, this commit fixes the previous inconsistency between a regular formset
and a model formset in the precedence of max_num and initial data. Previously
in a regular formset, if the provided initial data was longer than max_num, it
was truncated; in a model formset, all initial forms would be displayed
regardless of max_num. Now regular formsets are the same as model formsets; all
initial forms are displayed, even if more than max_num. (But if validate_max is
True, submitting these forms will result in a "too many forms" validation
error!) This combination of behaviors was chosen to keep the max_num validation
simple and consistent, and avoid silent data loss due to truncation of initial
data.

Thanks to Preston for discussion of the design choices.
2013-03-21 01:27:24 -07:00
..
0.95.txt Replaced http by https in djangoproject.com links 2012-03-13 17:53:31 +00:00
0.96.txt Fixed links to DATABASE ENGINE setting. refs #19516 2012-12-24 15:38:05 -05:00
1.0-alpha-1.txt Replaced http by https in djangoproject.com links 2012-03-13 17:53:31 +00:00
1.0-alpha-2.txt Replaced http by https in djangoproject.com links 2012-03-13 17:53:31 +00:00
1.0-beta-2.txt Removed obsolete contrib.comments upgrade guide 2012-11-24 18:10:51 +01:00
1.0-beta.txt Replaced http by https in djangoproject.com links 2012-03-13 17:53:31 +00:00
1.0-porting-guide.txt Fixed broken links, round 4. refs #19516 2012-12-29 15:54:33 -05:00
1.0.1.txt Updated obsolete links in the documentation 2012-06-28 10:49:07 +02:00
1.0.2.txt
1.0.txt Removed obsolete contrib.comments upgrade guide 2012-11-24 18:10:51 +01:00
1.1-alpha-1.txt Fixed more broken links. refs #19516 2012-12-25 04:44:09 -05:00
1.1-beta-1.txt Fixed broken links, round 4. refs #19516 2012-12-29 15:54:33 -05:00
1.1-rc-1.txt Replaced http by https in djangoproject.com links 2012-03-13 17:53:31 +00:00
1.1.2.txt
1.1.3.txt
1.1.4.txt Fixed many more ReST indentation errors, somehow accidentally missed from [16955] 2011-10-14 00:12:01 +00:00
1.1.txt Fixed broken links, round 4. refs #19516 2012-12-29 15:54:33 -05:00
1.2-alpha-1.txt Fixed links to DATABASE ENGINE setting. refs #19516 2012-12-24 15:38:05 -05:00
1.2-beta-1.txt Fixed #19516 - Fixed remaining broken links. 2013-01-02 18:32:57 -05:00
1.2-rc-1.txt Replaced http by https in djangoproject.com links 2012-03-13 17:53:31 +00:00
1.2.1.txt Added placeholder release notes for the 1.2.1 and 1.2.3 releases. 2011-08-26 09:31:01 +00:00
1.2.2.txt
1.2.3.txt Added placeholder release notes for the 1.2.1 and 1.2.3 releases. 2011-08-26 09:31:01 +00:00
1.2.4.txt Fixed broken links, round 4. refs #19516 2012-12-29 15:54:33 -05:00
1.2.5.txt Replaced http by https in djangoproject.com links 2012-03-13 17:53:31 +00:00
1.2.6.txt Added basic release notes for 1.2.6 and 1.3.1. 2011-09-10 03:33:54 +00:00
1.2.7.txt Added basic release notes for 1.2.7. 2011-09-11 02:28:08 +00:00
1.2.txt Fixed #19516 - Fixed remaining broken links. 2013-01-02 18:32:57 -05:00
1.3-alpha-1.txt Added some assertions to enforce the atomicity of atomic. 2013-03-11 14:48:55 +01:00
1.3-beta-1.txt Fixed #19516 - Fixed remaining broken links. 2013-01-02 18:32:57 -05:00
1.3.1.txt Added basic release notes for 1.2.6 and 1.3.1. 2011-09-10 03:33:54 +00:00
1.3.2.txt Added 1.4.1 and 1.3.2 release notes 2012-08-31 20:35:50 +02:00
1.3.txt Added some assertions to enforce the atomicity of atomic. 2013-03-11 14:48:55 +01:00
1.4-alpha-1.txt Fixed #19516 - Fixed remaining broken links. 2013-01-02 18:32:57 -05:00
1.4-beta-1.txt Fixed #19516 - Fixed remaining broken links. 2013-01-02 18:32:57 -05:00
1.4.1.txt Added 1.4.1 and 1.3.2 release notes 2012-08-31 20:35:50 +02:00
1.4.2.txt Added 1.4.2 release notes 2012-10-21 07:49:35 -07:00
1.4.txt Fixed #19516 - Fixed remaining broken links. 2013-01-02 18:32:57 -05:00
1.5-alpha-1.txt 1.5 is no longer "UNDER DEVELOPMENT". 2013-02-28 11:11:26 +01:00
1.5-beta-1.txt Fixed broken links, round 4. refs #19516 2012-12-29 15:54:33 -05:00
1.5.txt 1.5 is no longer "UNDER DEVELOPMENT". 2013-02-28 11:11:26 +01:00
1.6.txt Fixed #20084 -- Provided option to validate formset max_num on server. 2013-03-21 01:27:24 -07:00
index.txt Added 1.5 beta release notes. 2012-11-27 15:30:52 -06:00