summaryrefslogtreecommitdiff
path: root/docs/ref/forms
AgeCommit message (Collapse)Author
2013-10-12[1.6.x] Forms docs: More emphasis in 'id' value customizability.Ramiro Morales
18ea1c473b form master.
2013-09-23[1.6.x] Fixed #21120 -- Added more explicit text on using validators and ↵Ben Huckvale
link to writing validators. Thanks nicolas at niconomicon.net for the suggestion. Backport of 98e0453f00 from master
2013-08-08[1.6.x] Added an anchor for django.forms.Form.clean in docsTim Graham
Backport of 8442268869 from master
2013-07-29[1.6.x] Fixed #20823 -- Typo in docs/ref/forms/validation.txtTim Graham
Backport of 05ea5a2139 from master
2013-07-29[1.6.x] Misc doc cleanups.minusf
Backport of 70c080fcdb from master
2013-07-26[1.6.x] Fixed #20805 -- Removed an extra colon beside checkboxes in the admin.Tim Graham
Thanks CollinAnderson for the report. Backport of 8676318d2d from master
2013-07-13[1.6.x] Fixed #20582 -- Allowed default Form.label_suffix to be translatedClaude Paroz
Thanks Tim Graham for the review. Backport of 7557207983 from master.
2013-07-08[1.6.x] Fixed #19695 -- Retitle "Form Media" to "Form Assets".James Bennett
Backport of c0f03175ce from master
2013-07-08[1.6.x] Fixed #12346 -- Added a note on how to validate InlineFormSets.Tim Graham
Thanks johnsmith for the suggestion. Backport of 181f63c22d from master
2013-07-05[1.6.x] Fixed #20224 -- Update docs examples which mention __unicode__Claude Paroz
Thanks Marc Tamlyn and Tim Graham for the review. Backport of 7442eb1a24 from master.
2013-07-02[1.6.x] A couple more semicolon -> colon fixes; refs #18134.Tim Graham
Backport of 3632d289de from master.
2013-06-18Fixed #20199 -- Allow ModelForm fields to override error_messages from model ↵Loic Bistuer
fields
2013-06-13Fixed #20000 -- Allowed ModelForm meta overrides for label, help_text and ↵Loic Bistuer
error_messages
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-09Fixed #20567 - Documented BoundField.id_for_label.Tim Graham
Thanks littlepig for the suggestion.
2013-06-05Proofed the 1.6 release notesTim Graham
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-17Fixed #5472 --Added OpenLayers-based widgets in contrib.gisClaude Paroz
Largely inspired from django-floppyforms. Designed to not depend on OpenLayers at code level.
2013-05-14Fixed #19934 - Use of Pillow is now preferred over PIL.Daniel Lindsley
This starts the deprecation period for PIL (support to end in 1.8).
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-20Adapted uses of versionchanged/versionadded to the new form.Juan Catalano
Refs #20104.
2013-04-18Complemented documentation following commit be9ae693cClaude Paroz
Refs #17840. Thanks Carl Meyer for noticing the omission.
2013-04-13Fixed #4592: Made CheckboxSelectMultiple more like RadioSelectBaptiste Mispelon
I refactored RadioSelect and CheckboxSelectMultiple to make them inherit from a base class, allowing them to share the behavior of being able to iterate over their subwidgets. Thanks to Matt McClanahan for the initial patch and to Claude Paroz for the review.
2013-04-13Fixed #4117: Apply id attribute to the outer <ul> of RadioSelectBaptiste Mispelon
2013-04-13Fixed #19874: Apply id attribute to the outer <ul> of CheckboxSelectMultipleBaptiste Mispelon
2013-04-12Documented BoundField.label_tagClaude Paroz
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-03-14Fixed #17051 -- Removed some 'invalid' field error messagesClaude Paroz
When the 'invalid' error message is set at field level, it masks the error message raised by the validator, if any.
2013-02-25Fixed #19801 - Added brackets to input_formats.Tim Graham
Thanks leandron85@ for the suggestion.
2013-02-23Fixed #19686 -- Added HTML5 number input typeClaude Paroz
Thanks Simon Charette for his help on the patch. Refs #16630.
2013-02-16Fixed #19812 - Removed a duplicate phrase in the widget docs.Tim Graham
Thanks diegueus9 for the report and itsallvoodoo for the draft patch.
2013-01-28Added HTML5 url input typeClaude Paroz
Refs #16630.
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-29Added links to default widget in forms.fields documentationClaude Paroz
2012-12-26Fixed broken links, round 3. refs #19516Tim Graham
2012-11-17Fixed #13997 - Added an example of constructing a MultiWidget and documented ↵Tim Graham
the value_from_datadict method.
2012-11-07Fixed invalid ipv4 mapped ipv6 addresses in docsDanilo Bargen
2012-10-13Added ref to format localization in Date[Time]Field docsClaude Paroz
Thanks henrik@aisti.fi for the suggestion in #19119.
2012-10-13Fixed #19119 -- Corrected default date input formats in docsClaude Paroz
Thanks henrik@aisti.fi for the report.
2012-10-03Fixed #14567 -- Made ModelMultipleChoiceField return EmptyQuerySet as empty ↵Stephen Burrows
value
2012-09-26Fixed #17899 -- Rewrote [Ee]-mail to [Ee]mailAdrien Lemaire
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.