Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/docs/ref/forms/models.txt
Commit message (Collapse)AuthorAgeFilesLines
* Removed versionadded/changed annotations for 1.8.Tim Graham2015-09-241-5/+0
|
* Fixed #24295 -- Allowed ModelForm meta to specify form ↵Loic Bistuer2015-02-131-7/+22
| | | | | | field classes. Thanks Carl Meyer and Markus Holtermann for the reviews.
* Fixed #17638 -- Added crosslinks between topic and ↵Duane Hilton2014-09-301-0/+3
| | | | | | reference guides. Thanks oinopion for the suggestion and jarus for the initial patch.
* Fixed #17642 -- Added min_num support to modelformsets, ↵Anders Steinlein2014-05-151-2/+2
| | | | | | | | inlines, and the admin. Thanks Stephen Burrows for work on the patch as well. Forwardport of 2914f66983a92fcae55673c517dd8d01e8c238c4 from stable/1.7.x
* Removed versionadded/changed annotations for 1.6.Tim Graham2014-03-241-10/+0
|
* Made ModelForms raise ImproperlyConfigured if the list ↵Tim Graham2014-03-221-6/+6
| | | | | | | | of fields is not specified. Also applies to modelform(set)_factory and generic model views. refs #19733.
* Fixed #12346 -- Added a note on how to validate ↵Tim Graham2013-07-081-2/+2
| | | | | | InlineFormSets. Thanks johnsmith for the suggestion.
* Fixed #20000 -- Allowed ModelForm meta overrides for ↵Loic Bistuer2013-06-131-9/+20
| | | | label, help_text and error_messages
* Proofed the 1.6 release notesTim Graham2013-06-051-1/+1
|
* Fixed #13546 -- Easier handling of localize field ↵Erik Romijn2013-05-181-6/+10
| | | | options in ModelForm
* Fixed #19733 - deprecated ModelForms without 'fields' or ↵Luke Plant2013-05-091-0/+8
| | | | | | | | 'exclude', and added '__all__' shortcut This also updates all dependent functionality, including modelform_factory and modelformset_factory, and the generic views `ModelFormMixin`, `CreateView` and `UpdateView` which gain a new `fields` attribute.
* Adapted uses of versionchanged/versionadded to the new form.Juan Catalano2013-04-201-2/+2
| | | | Refs #20104.
* Fixed #20084 -- Provided option to validate formset ↵Andrew Gorcester2013-03-211-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fixed #17416 -- Added widgets argument to ↵Nick Sandford2013-01-241-4/+12
| | | | inlineformset_factory and modelformset_factory
* Fixed #19640 - Added inlineformset_factory to reference ↵Tim Graham2013-01-221-3/+14
| | | | | | docs. Thanks wim@ for the suggestion.
* Fixed #10239 - Added docs for modelform_factoryTim Graham2013-01-111-0/+40
Thanks ingenieroariel for the suggestion and slurms for the review.