summaryrefslogtreecommitdiff
path: root/docs/ref/forms
AgeCommit message (Collapse)Author
2014-08-31[1.7.x] Fixed #23391 -- Removed an erroneous backtip from the form's ↵Simon Charette
documentation. Thanks to Trac alias nessita for the report. Backport of ab9c886459 from master
2014-08-29[1.7.x] Fixed #22786 -- Documented value_from_datadict caveatClaude Paroz
Thanks blueyed for the report and Tim Graham for the review. Backport of 909015a51b from master.
2014-08-27[1.7.x] Fixed #23354 -- Documented that ModelChoiceField to_field_name ↵Tim Graham
should be a unique field. Thanks Keryn Knight for the suggestion. Backport of 83762da3fb from master
2014-08-26[1.7.x] Fixed #23250 -- Documented that ModelMultipleChoiceField queryset ↵Tim Graham
may be None. Backport of ced3e303ca from master
2014-08-18[1.7.x] Fixed some doc errors that caused syntax highlighting to fail.Tim Graham
Backport of 27fdac97ae from master
2014-08-14[1.7.x] Fixed a grammar error in docs/ref/forms/api.txt.Zhaorong Ma
Backport of bef5b9b7cd from master
2014-08-05[1.7.x] Fixed #21792 -- Documented Form.has_changed()Tim Graham
Thanks bjb at credil.org for the suggestion and Ivan Mesic for the draft patch. Backport of edcc75e5ac from master
2014-08-04[1.7.x] Fixed #23169 - Misc docs fixes.areski
Backport of e4dd8b5dde from master
2014-06-30[1.7.x] Fixed #21942 -- Moved Form.clean() to form API docs.Tim Graham
Thanks cjerdonek for the suggestion. Backport of 874053edf9 from master
2014-06-24[1.7.x] Fixed #22796 -- Added a more basic explanations of forms.Daniele Procida
Thanks bmispelon, kezabelle, jorgecarleitao, and timgraham for reviews. Backport of cd20b5d186 from master
2014-06-12[1.7.x] Fixed #22813 -- Updated Pillow URL in documentationClaude Paroz
Backport of dfa3505ff1 from master.
2014-06-11[1.7.x] Fixed typo in docs/ref/forms/validation.txt.Maxime Lorant
Backport of c307383ec9 from master
2014-05-24[1.7.x] Fixed #22510 -- Harden field removal to only None.Marc Tamlyn
Refs #8620. If we allow any value to remove form fields then we get name clashes with method names, media classes etc. There was a backwards incompatibility introduced meaning ModelForm subclasses with declared fields called media or clean would lose those fields. Field removal is now only permitted by using the sentinel value None. The docs have been slightly reworded to refer to removal of fields rather than shadowing. Thanks to gcbirzan for the report and initial patch, and several of the core team for opinions. Backport of 9fb0f5dddc4cf7f2d294af1bcde2c359cffd90a5 from master
2014-05-16[1.7.x] Fixed case in form widgets docsClaude Paroz
Backport of 9494f29d from master
2014-05-15[1.7.x] Fixed #17642 -- Added min_num support to modelformsets, inlines, and ↵Anders Steinlein
the admin. Thanks Stephen Burrows for work on the patch as well.
2014-04-05[1.7.x] Fixed #22216 -- Added Form.non_field_errors to form API doc.Tim Graham
Backport of d2f4553d705951ca8043d687f9493c559f494a0c from master
2014-03-16Fixed #21860 -- Added to_field_name to ModelChoiceField docs.Anubhav Joshi
Thanks Keryn Knight for the suggestion.
2014-02-28Fixed doc typos.Tim Graham
2014-02-28Fixed #21962 -- Added escape_html flag to ErrorDict.as_json()vvojvoda
2014-02-14Fixed #21654 -- Documented a use-case for Form.errors.as_data().Loic Bistuer
Thanks selwin for the suggestion.
2014-02-13Fixed #21951 -- Updated docs to use __str__ for Python 3Alasdair Nicol
Thanks Tim Graham for the report and recommendations
2014-02-04Made some PEP8 fixes in docs/ref/forms/widgets.txtTim Graham
Thanks Siecje.
2014-01-22Always use parentheses when documenting a method with no arguments.Baptiste Mispelon
2014-01-22Don't show `self` in the list of arguments of a method.Baptiste Mispelon
This is consistent with Python's official documentation and it's a sphinx recommendation too[1]. [1] http://sphinx-doc.org/markup/desc.html#dir-method Refs #21855.
2014-01-11Fixed #8898 -- Obsoleted SplitDateTimeWidget usage with DateTimeFieldClaude Paroz
Thanks Tim Graham for the review.
2014-01-02Fixed #21319 -- Added documentation for the Form.fields attribute.Vajrasky Kok
Thanks pydanny for the report. Also, added documentation about base_fields attribute and its difference with fields attribute.
2013-12-25Fixed #21669 -- Typo in docs/ref/forms/fields.txt.Tim Graham
Thanks alex_koval for the report.
2013-12-16Fixed #17413 -- Serialization of form errors along with all metadata.Loic Bistuer
2013-11-30Removed Form._errors from the docs in favor of the add_error API.Loic Bistuer
2013-11-30Fixed #20867 -- Added the Form.add_error() method.Loic Bistuer
Refs #20199 #16986. Thanks @akaariai, @bmispelon, @mjtamlyn, @timgraham for the reviews.
2013-11-18Fixed #21397 -- Re-added flexibility to TypedChoiceField coercionClaude Paroz
Thanks Elec for the report and Simon Charette for the review.
2013-11-12Fixed typos in previous commit (9aa6d4bdb6618ba4f17acc7b7c0d1462d6cbc718).Baptiste Mispelon
2013-11-12Removed a mention of `Form._errors` from the documentation.Baptiste Mispelon
Also removed a sentence that was incorrect: raising a `ValidationError` inside `Form.clean` doesn't clear the `cleaned_data` attribute. Thanks to loic84 and timograham for the review.
2013-10-14Fixed #8620 -- Updated the Form metaclass to support excluding fields by ↵Loic Bistuer
shadowing them.
2013-10-12Forms docs: More emphasis in 'id' value customizability.Ramiro Morales
2013-09-28Fixed #20439 -- Started deprecation of IPAddressFieldErik Romijn
2013-09-23Fixed #21120 -- Added more explicit text on using validators and link to ↵Ben Huckvale
writing validators. Thanks nicolas at niconomicon.net for the suggestion.
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-09-05Fixed #21009 -- Added a versionchanged note regarding changes to clean().Tim Graham
refs [fb1dd6b13a] and [1c4a9bd9ad1]
2013-08-28Fixed #20986 -- Enabled SelectDateWidget to use custom monthsLoic Bistuer
Reviewed by Trac alias MarkusH.
2013-08-19Removed versionadded/changed annotations for 1.5Tim Graham
2013-08-13Fixed #20555 -- Make subwidget id attribute availableMatt Johnson
In `BoundField.__iter__`, the widget's id attribute is now passed to each subwidget. A new id_for_label property was added to ChoiceInput.
2013-08-08Added an anchor for django.forms.Form.clean in docsTim Graham
2013-08-08Form.clean() does not need to return cleaned_data.Marc Tamlyn
If it does, that will be used as the cleaned_data. The default implementation has been changed to match this change.
2013-08-06Fixed #15511 -- Allow optional fields on ``MultiValueField` subclasses.Tai Lee
The `MultiValueField` class gets a new ``require_all_fields`` argument that defaults to ``True``. If set to ``False``, individual fields can be made optional, and a new ``incomplete`` validation error will be raised if any required fields have empty values. The ``incomplete`` error message can be defined on a `MultiValueField` subclass or on each individual field. Skip duplicate errors.
2013-07-29Fixed #20823 -- Typo in docs/ref/forms/validation.txtTim Graham
2013-07-29Misc doc cleanups.minusf
2013-07-26Fixed #20805 -- Removed an extra colon beside checkboxes in the admin.Tim Graham
Thanks CollinAnderson for the report.
2013-07-13Fixed #20582 -- Allowed default Form.label_suffix to be translatedClaude Paroz
Thanks Tim Graham for the review.