summaryrefslogtreecommitdiff
path: root/docs/topics/forms
AgeCommit message (Collapse)Author
2013-09-19Fixed #9532 -- Added min_num and validate_min on formsets.yokomizor
Thanks gsf for the suggestion.
2013-09-16Fixed #17627 -- Renamed util.py files to utils.pyTim Graham
Thanks PaulM for the suggestion and Luke Granger-Brown and Wiktor Kołodziej for the initial patch.
2013-08-28Minor spelling correction in ModelForms docsPhaneendra Chiruvella
2013-08-06Fixed #20852 - Fixed incorrectly generated left quotes in docs.Dominic Rodger
Sphinx generates left single quotes for apostrophes after code markup, when right single quotes are required. The easiest way to fix this is just by inserting the unicode character for a right single quote. Instances of the problem were found by looking for ">‘" in the generated HTML.
2013-07-23Fixed #10284 -- ModelFormSet.save(commit=False) no longer deletes objectsTim Graham
Thanks laureline.guerin@ and Wedg.
2013-07-19Fixed #20772 -- Fixed minor typo in form media docs.Loic Bistuer
2013-07-16Reworked docs for ModelForm validation.Loic Bistuer
2013-07-08Fixed #19695 -- Retitle "Form Media" to "Form Assets".James Bennett
2013-07-08Fixed #16965 -- Clarified Formset can_delete docs.Tim Graham
Thanks gregcorey@ for the suggestion.
2013-07-08Fixed #12346 -- Added a note on how to validate InlineFormSets.Tim Graham
Thanks johnsmith for the suggestion.
2013-07-05Fixed #20224 -- Update docs examples which mention __unicode__Claude Paroz
Thanks Marc Tamlyn and Tim Graham for the review.
2013-07-02Fix "semicolon" in docsBen Firshman
2013-06-16Fixed #20464 -- Added a `total_error_count` method on formsets.Baptiste Mispelon
Thanks to frog32 for the report and to Tim Graham for the review.
2013-06-13Fixed #20000 -- Allowed ModelForm meta overrides for label, help_text and ↵Loic Bistuer
error_messages
2013-06-11FormSet.forms is an iterable, so just iterate over itWilfred Hughes
2013-06-10Fixed #20578 - Typo in BaseFormSet module nameTim Graham
2013-06-10Fixed #18134 -- BoundField.label_tag now includes the form's label_suffixGabe Jackson
There was an inconsistency between how the label_tag for forms were generated depending on which method was used: as_p, as_ul and as_table contained code to append the label_suffix where as label_tag called on a form field directly did NOT append the label_suffix. The code for appending the label_suffix has been moved in to the label_tag code of the field and the HTML generation code for as_p, as_ul and as_table now calls this code as well. This is a backwards incompatible change because users who have added the label_suffix manually in their templates may now get double label_suffix characters in their forms.
2013-06-09Update media.txtKenny Rachuonyo
Fixed typo: froms -> forms
2013-05-28Fixed #20523 - Incorrect form field for FilePathField.Tim Graham
Thanks sane4ka.sh@ for the report.
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.