Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/docs/ref/forms
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed #21942 -- Moved Form.clean() to form API docs.Tim Graham2014-06-302-11/+19
| | | | Thanks cjerdonek for the suggestion.
* Fixed #22796 -- Added a more basic explanations of forms.Daniele Procida2014-06-241-0/+4
| | | | Thanks bmispelon, kezabelle, jorgecarleitao, and timgraham for reviews.
* Fixed #22813 -- Updated Pillow URL in documentationClaude Paroz2014-06-121-1/+1
|
* Fixed typo in docs/ref/forms/validation.txt.Maxime Lorant2014-06-111-1/+1
|
* Fixed #22684 -- Amended SelectDateWidget.empty_label to ↵gyx10002014-06-041-4/+15
| | | | | | accept a tuple of values. Thanks danielsamuels for the report
* Fixed #22684 -- Added `empty_label` option on ↵Guillaume Pannatier2014-05-281-0/+12
| | | | | | `django.forms.extras.widets.SelectDateWidget` Thanks danielsamuels for the report
* Fixed #22510 -- Harden field removal to only None.Marc Tamlyn2014-05-241-4/+14
| | | | | | | | | | | | | | | | 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.
* 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
* Fixed #22533 -- Added label_suffix parameter to form fields.Julen Ruiz Aizpuru2014-05-132-8/+33
| | | | | | | | | | | | | | Fields can now receive the `label_suffix` attribute, which will override a form's `label_suffix`. This enhances the possibility to customize form's `label_suffix`, allowing to use such customizations while using shortcuts such as `{{ form.as_p }}`. Note that the field's own customization can be overridden at runtime by using the `label_prefix` parameter to `BoundField.label_tag()`. Refs #18134.
* Fixed #22378 -- Updated \d to [0-9]+ in urlpatterns of ↵chriscauley2014-04-171-3/+3
| | | | | | docs and tests. Thanks tomwys for the suggestion.
* Fixed #22216 -- Added Form.non_field_errors to form API doc.Tim Graham2014-04-062-4/+13
|
* Fixed case in form widgets docsClaude Paroz2014-04-051-1/+1
|
* Removed versionadded/changed annotations for 1.6.Tim Graham2014-03-246-58/+16
|
* Fixed #17922 -- Added required_css_class to form label.Anubhav Joshi2014-03-241-3/+16
| | | | Thanks hanson2010 for the suggestion.
* Fixed #22318 -- Added Form.has_error() to easily check ↵Loic Bistuer2014-03-241-0/+11
| | | | if a given error has happened.
* Fixed #22313 -- Removed 'u' prefixes from documentationClaude Paroz2014-03-224-33/+33
|
* Fixed #20684 -- Added support for HTML5 boolean ↵Loic Bistuer2014-03-221-0/+13
| | | | attributes to form widgets.
* 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.
* Removed PIL compatability layer per deprecation timeline.Tim Graham2014-03-211-8/+6
| | | | refs #19934.
* Fixed #21860 -- Added to_field_name to ModelChoiceField ↵Anubhav Joshi2014-03-161-1/+35
| | | | | | docs. Thanks Keryn Knight for the suggestion.
* Fixed doc typos.Tim Graham2014-02-281-1/+1
|
* Fixed #21962 -- Added escape_html flag to ↵vvojvoda2014-02-281-1/+12
| | | | ErrorDict.as_json()
* Fixed #21654 -- Documented a use-case for ↵Loic Bistuer2014-02-142-0/+21
| | | | | | Form.errors.as_data(). Thanks selwin for the suggestion.
* Fixed #21951 -- Updated docs to use __str__ for Python 3Alasdair Nicol2014-02-132-8/+8
| | | | Thanks Tim Graham for the report and recommendations
* Made some PEP8 fixes in docs/ref/forms/widgets.txtTim Graham2014-02-041-4/+2
| | | | Thanks Siecje.
* Always use parentheses when documenting a method with no ↵Baptiste Mispelon2014-01-222-5/+5
| | | | arguments.
* Don't show `self` in the list of arguments of a method.Baptiste Mispelon2014-01-221-1/+1
| | | | | | | | | 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.
* Fixed #8898 -- Obsoleted SplitDateTimeWidget usage with ↵Claude Paroz2014-01-111-0/+6
| | | | | | DateTimeField Thanks Tim Graham for the review.
* Fixed #21319 -- Added documentation for the Form.fields ↵Vajrasky Kok2014-01-031-0/+34
| | | | | | | attribute. Thanks pydanny for the report. Also, added documentation about base_fields attribute and its difference with fields attribute.
* Fixed #21669 -- Typo in docs/ref/forms/fields.txt.Tim Graham2013-12-251-1/+1
| | | | Thanks alex_koval for the report.
* Fixed #17413 -- Serialization of form errors along with ↵Loic Bistuer2013-12-161-0/+21
| | | | all metadata.
* Removed Form._errors from the docs in favor of the ↵Loic Bistuer2013-11-292-95/+11
| | | | add_error API.
* Fixed #20867 -- Added the Form.add_error() method.Loic Bistuer2013-11-292-0/+48
| | | | | | Refs #20199 #16986. Thanks @akaariai, @bmispelon, @mjtamlyn, @timgraham for the reviews.
* Fixed #21397 -- Re-added flexibility to TypedChoiceField ↵Claude Paroz2013-11-181-1/+3
| | | | | | coercion Thanks Elec for the report and Simon Charette for the review.
* Fixed typos in previous commit ↵Baptiste Mispelon2013-11-121-5/+5
| | | | (9aa6d4bdb6618ba4f17acc7b7c0d1462d6cbc718).
* Removed a mention of `Form._errors` from the documentation.Baptiste Mispelon2013-11-121-10/+6
| | | | | | | | 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.
* Fixed #8620 -- Updated the Form metaclass to support ↵Loic Bistuer2013-10-141-0/+7
| | | | excluding fields by shadowing them.
* Forms docs: More emphasis in 'id' value customizability.Ramiro Morales2013-10-121-13/+19
|
* Fixed #20439 -- Started deprecation of IPAddressFieldErik Romijn2013-09-281-0/+4
|
* Fixed #21120 -- Added more explicit text on using ↵Ben Huckvale2013-09-231-3/+13
| | | | | | validators and link to writing validators. Thanks nicolas at niconomicon.net for the suggestion.
* Fixed #9532 -- Added min_num and validate_min on formsets.yokomizor2013-09-191-2/+6
| | | | Thanks gsf for the suggestion.
* Fixed #17627 -- Renamed util.py files to utils.pyTim Graham2013-09-162-4/+8
| | | | | Thanks PaulM for the suggestion and Luke Granger-Brown and Wiktor Kołodziej for the initial patch.
* Fixed #21009 -- Added a versionchanged note regarding ↵Tim Graham2013-09-051-0/+6
| | | | | | changes to clean(). refs [fb1dd6b13a] and [1c4a9bd9ad1]
* Fixed #20986 -- Enabled SelectDateWidget to use custom ↵Loic Bistuer2013-08-281-0/+17
| | | | | | months Reviewed by Trac alias MarkusH.
* Removed versionadded/changed annotations for 1.5Tim Graham2013-08-194-27/+2
|
* Fixed #20555 -- Make subwidget id attribute availableMatt Johnson2013-08-131-24/+41
| | | | | In `BoundField.__iter__`, the widget's id attribute is now passed to each subwidget. A new id_for_label property was added to ChoiceInput.
* Added an anchor for django.forms.Form.clean in docsTim Graham2013-08-081-0/+2
|
* Form.clean() does not need to return cleaned_data.Marc Tamlyn2013-08-081-10/+2
| | | | | If it does, that will be used as the cleaned_data. The default implementation has been changed to match this change.
* Fixed #15511 -- Allow optional fields on ↵Tai Lee2013-08-061-1/+40
| | | | | | | | | | | | ``MultiValueField` subclasses. 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.
* Fixed #20823 -- Typo in docs/ref/forms/validation.txtTim Graham2013-07-301-1/+1
|