Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/docs/topics/forms
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed doc typos.Tim Graham2014-02-281-1/+1
|
* Fixed docs typos.Szczepan Cieślik2014-02-251-1/+1
|
* Fixed #21951 -- Updated docs to use __str__ for Python 3Alasdair Nicol2014-02-131-2/+1
| | | | Thanks Tim Graham for the report and recommendations
* Fixed #16192 -- Made unique error messages in ModelForm ↵Loic Bistuer2014-02-081-1/+18
| | | | | | | | | | | | | | customizable. Overriding the error messages now works for both unique fields, unique_together and unique_for_date. This patch changed the overriding logic to allow customizing NON_FIELD_ERRORS since previously only fields' errors were customizable. Refs #20199. Thanks leahculver for the suggestion.
* Fixed #21847 -- Clarified where ContactForm was definedTom Atkins2014-01-231-0/+1
|
* 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 #21539 -- Added example of modelformset_factory's ↵Alasdair Nicol2013-12-141-0/+24
| | | | form argument
* Fixed #21560 -- missing 'slug' field in example codeChristian Schmitt2013-12-091-1/+1
| | | | I updated the documentation, that the modelform now includes the 'slug' field.
* Improved docs for ModelFormSet.clean().Loic Bistuer2013-11-231-0/+18
|
* Improvement on InlineFormSet doc, refs #21006Tianyi Wang2013-10-151-6/+6
|
* Fixed #21006 -- Added example code for overriding ↵Tianyi Wang2013-10-151-4/+26
| | | | | | methods on an InlineFormSet. Thanks treysta at gmail.com for the suggestion.
* Merge pull request #1382 from loic/ticket19617Marc Tamlyn2013-10-151-4/+19
|\ | | | | Fixed #19617 -- Refactored form metaclasses to support more inheritance scenarios.
| * Fixed #8620 -- Updated the Form metaclass to support ↵Loic Bistuer2013-10-141-0/+14
| | | | | | | | excluding fields by shadowing them.
| * Fixed #19617 -- Refactored Form metaclasses to support ↵Loic Bistuer2013-10-141-4/+5
| | | | | | | | | | | | more inheritance scenarios. Thanks apollo13, funkybob and mjtamlyn for the reviews.
* | Fixed #21223 -- Added form.id_for_label to topic guide.Sorcha Bowler2013-10-151-0/+6
|/ | | | Thanks ebertti at yahoo.com.br for the suggestion.
* Clarfied the ModelForm docs with respect to generated ↵Loic Bistuer2013-10-141-11/+22
| | | | | | | | | | | | | | | | | | | vs. declared fields. The ModelForm docs suggested that fields defined declaratively override default fields generated from the form Meta. This is conceptually wrong, especially with inheritance in mind. Meta is usually defined on the topmost ModelForm subclass, while fields can come from anywhere in the MRO, especially base classes; therefore we suggested that something defined in a base class override something from a subclass. This patch rephrases the docs around the idea that Meta is used to generate *missing* fields. Refs #8620, #19617. Thanks @mjtamlyn and @timgraham for the review.
* Fixed #9532 -- Added min_num and validate_min on formsets.yokomizor2013-09-191-3/+44
| | | | Thanks gsf for the suggestion.
* Fixed #17627 -- Renamed util.py files to utils.pyTim Graham2013-09-161-1/+1
| | | | | Thanks PaulM for the suggestion and Luke Granger-Brown and Wiktor Kołodziej for the initial patch.
* Minor spelling correction in ModelForms docsPhaneendra Chiruvella2013-08-281-1/+1
|
* Fixed #20852 - Fixed incorrectly generated left quotes ↵Dominic Rodger2013-08-061-2/+2
| | | | | | | | | | | | in docs. 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.
* Fixed #10284 -- ModelFormSet.save(commit=False) no ↵Tim Graham2013-07-232-8/+33
| | | | | | longer deletes objects Thanks laureline.guerin@ and Wedg.
* Fixed #20772 -- Fixed minor typo in form media docs.Loic Bistuer2013-07-191-1/+1
|
* Reworked docs for ModelForm validation.Loic Bistuer2013-07-171-52/+83
|
* Fixed #19695 -- Retitle "Form Media" to "Form Assets".James Bennett2013-07-082-85/+93
|
* Fixed #16965 -- Clarified Formset can_delete docs.Tim Graham2013-07-081-3/+10
| | | | Thanks gregcorey@ for the suggestion.
* Fixed #12346 -- Added a note on how to validate ↵Tim Graham2013-07-081-3/+14
| | | | | | InlineFormSets. Thanks johnsmith for the suggestion.
* Fixed #20224 -- Update docs examples which mention ↵Claude Paroz2013-07-051-0/+1
| | | | | | __unicode__ Thanks Marc Tamlyn and Tim Graham for the review.
* Fix "semicolon" in docsBen Firshman2013-07-021-1/+1
|
* Fixed #20464 -- Added a `total_error_count` method on ↵Baptiste Mispelon2013-06-161-0/+17
| | | | | | formsets. Thanks to frog32 for the report and to Tim Graham for the review.
* Fixed #20000 -- Allowed ModelForm meta overrides for ↵Loic Bistuer2013-06-131-15/+44
| | | | label, help_text and error_messages
* FormSet.forms is an iterable, so just iterate over itWilfred Hughes2013-06-111-2/+1
|
* Fixed #20578 - Typo in BaseFormSet module nameTim Graham2013-06-101-1/+1
|
* Fixed #18134 -- BoundField.label_tag now includes the ↵Gabe Jackson2013-06-102-6/+12
| | | | | | | | | | | | | | | | form's label_suffix 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.
* Update media.txtKenny Rachuonyo2013-06-091-1/+1
| | | Fixed typo: froms -> forms
* Fixed #20523 - Incorrect form field for FilePathField.Tim Graham2013-05-281-1/+1
| | | | Thanks sane4ka.sh@ for the report.
* Fixed #20471 - Typos in topics/forms/formsets.txtTim Graham2013-05-201-3/+3
|
* Fixed #20403 -- Ignore forms marked for deletion when ↵Ryan Kaskel2013-05-201-1/+2
| | | | validating max_num.
* add missing imports to the examples in the 'Forms'leandrafinger2013-05-193-0/+62
|
* Fixed #13546 -- Easier handling of localize field ↵Erik Romijn2013-05-181-0/+36
| | | | options in ModelForm
* Fixed #19733 - deprecated ModelForms without 'fields' or ↵Luke Plant2013-05-091-80/+83
| | | | | | | | 'exclude', and 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.
* Corrected "it's" to "its" when used possessively.Thomas Thurman2013-04-291-1/+1
| | | | Fixed #20327.
* Adapted uses of versionchanged/versionadded to the new form.Juan Catalano2013-04-201-0/+2
| | | | Refs #20104.
* Fixed #20263 -- Corrected wording in the formset ↵Simon Charette2013-04-151-1/+1
| | | | | | documentation. Thanks to feraudyh at yahoo.com for the report.
* Fixed #8649 - Documented a caveat about dynamically ↵Tim Graham2013-03-311-1/+4
| | | | adjusting formsets.
* Fixed #20084 -- Provided option to validate formset ↵Andrew Gorcester2013-03-212-12/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | max_num on server. 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.
* Fixed #19686 -- Added HTML5 number input typeClaude Paroz2013-02-231-3/+3
| | | | Thanks Simon Charette for his help on the patch. Refs #16630.
* Added a default limit to the maximum number of forms in ↵Aymeric Augustin2013-02-192-4/+4
| | | | | | a formset. This is a security fix. Disclosure and advisory coming shortly.
* Removed a misleading examples from documentations ala ↵Alex Hunley2013-02-161-5/+0
| | | | ticket #19719
* Fixed #19808 Capitalization error in example textJonLoy2013-02-121-1/+1
|
* Fixed #19700 - Added documentation for BoundField.field.Tim Graham2013-02-021-1/+7
| | | | Thanks Tiberiu Ana for the report and patch.