summaryrefslogtreecommitdiff
path: root/docs/topics/forms
AgeCommit message (Collapse)Author
2013-05-20Fixed #20471 - Typos in topics/forms/formsets.txtTim Graham
2013-05-20Fixed #20403 -- Ignore forms marked for deletion when validating max_num.Ryan Kaskel
2013-05-19add missing imports to the examples in the 'Forms'leandrafinger
2013-05-18Fixed #13546 -- Easier handling of localize field options in ModelFormErik Romijn
2013-05-09Fixed #19733 - deprecated ModelForms without 'fields' or 'exclude', and ↵Luke Plant
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.
2013-04-29Corrected "it's" to "its" when used possessively.Thomas Thurman
Fixed #20327.
2013-04-20Adapted uses of versionchanged/versionadded to the new form.Juan Catalano
Refs #20104.
2013-04-15Fixed #20263 -- Corrected wording in the formset documentation.Simon Charette
Thanks to feraudyh at yahoo.com for the report.
2013-03-31Fixed #8649 - Documented a caveat about dynamically adjusting formsets.Tim Graham
2013-03-21Fixed #20084 -- Provided option to validate formset max_num on server.Andrew Gorcester
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-02-23Fixed #19686 -- Added HTML5 number input typeClaude Paroz
Thanks Simon Charette for his help on the patch. Refs #16630.
2013-02-19Added a default limit to the maximum number of forms in a formset.Aymeric Augustin
This is a security fix. Disclosure and advisory coming shortly.
2013-02-16Removed a misleading examples from documentations ala ticket #19719Alex Hunley
2013-02-12Fixed #19808 Capitalization error in example textJonLoy
2013-02-02Fixed #19700 - Added documentation for BoundField.field.Tim Graham
Thanks Tiberiu Ana for the report and patch.
2013-01-28Added HTML5 email input typeClaude Paroz
Refs #16630.
2013-01-24Fixed #17416 -- Added widgets argument to inlineformset_factory and ↵Nick Sandford
modelformset_factory
2013-01-23Fixed #19610 - Added enctype note to forms topics doc.Tim Graham
Thanks will@ for the suggestion.
2013-01-22Fixed #19640 - Added inlineformset_factory to reference docs.Tim Graham
Thanks wim@ for the suggestion.
2013-01-11Fixed #10239 - Added docs for modelform_factoryTim Graham
Thanks ingenieroariel for the suggestion and slurms for the review.
2013-01-02Fixed #19516 - Fixed remaining broken links.Tim Graham
Added -n to sphinx builds to catch issues going forward.
2012-12-29Removed versionadded/changed annotations dating back to 1.4.Aymeric Augustin
2012-12-29Fixed broken links, round 4. refs #19516Tim Graham
2012-12-08Removed US localflavor-specific tests from coreClaude Paroz
Also fixes #9045.
2012-11-05Fixed #15591 - Clarified interaction between ModelForm and model validation.Tim Graham
2012-10-16Fixed #18548 - Clarified note regarding reusing model instances when form ↵Tim Graham
validation fails.
2012-09-20Fixed #18934 - Removed versionadded/changed annotations for Django 1.3Tim Graham
2012-09-15Fixed #11185 - Expanded docs on customizing widgets; thanks fadeev for the ↵Tim Graham
draft patch.
2012-09-08fixing modelforms example code, ticket #18832Nick Martini
2012-08-24Fixed #18847 - Updated for media examples to use static.example.com. Thanks ↵Tim Graham
Jamie Curle.
2012-08-21Fixed #14885 - Clarified that ModelForm cleaning may not fully complete if ↵Tim Graham
the form is invalid. Thanks Ben Sturmfels for the patch.
2012-08-01Fixed #16168 - Added note regarding type requirements when overridng ↵Tim Graham
ModelForm fields. Thanks Pieter Swinkels for the patch.
2012-07-25Fixed #18614 -- Added missing imports in code samples.Florian Apolloner
2012-06-23Fixed #14917 -- Hinted that view should redirect after form post successClaude Paroz
2012-06-11Fixed #18451 -- Vastly improved class based view documentation.Jannis Leidel
Many thanks to Daniel Greenfeld, James Aylett, Marc Tamlyn, Simon Williams, Danilo Bargen and Luke Plant for their work on this.
2012-06-08Revised the text in the 'Processing the data from a form' section.Audrey Roy
2012-06-08Revised the text in the 'Using a form in a view' section.Audrey Roy
2012-06-07Fixed #18445 -- Added a links in the docs.Aymeric Augustin
Thanks Audrey Roy for the patch.
2012-06-07Removed references to changes made in 1.2.Aymeric Augustin
Thanks Florian Apolloner for the patch.
2012-06-04Merge pull request #99 from danielroseman/masterAdrian Holovaty
Docs: "Form in a view" example doesn't use RequestContext
2012-05-31Use render shortcut in form example.Daniel Roseman
2012-05-22Fixed #18244 -- Documented that formset.has_changed is a 1.4 addition.Claude Paroz
2012-04-30Replaced print statement by print function (forward compatibility syntax).Claude Paroz
2012-03-31Removed deprecated URLField.verify_exists.Aymeric Augustin
The deprecation schedule was slightly accelerated because of possible security ramifications. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17847 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-03Made a bunch more edits up until [17418]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17428 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-15Added support for specifying initial values to model formsets and inline ↵Ramiro Morales
formsets. This make them consistent with the similar capability of regular formsets. Thanks to simon29 form the report and to Claude Paroz for the patch. Fixes #14574. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17373 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-21Fixed #16851 - Added how-to access form field value in template; thanks ↵Timo Graham
yasar11732 for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-14Fixed many more ReST indentation errors, somehow accidentally missed from ↵Luke Plant
[16955] git-svn-id: http://code.djangoproject.com/svn/django/trunk@16983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-04Fixed #16985 -- corrected a few grammar errors in the docs.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16925 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-22Fixed 11674 -- Clarified docs on excluded fields of ModelForms.Paul McMillan
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16875 bcc190cf-cafb-0310-a4f2-bffc1f526a37