summaryrefslogtreecommitdiff
path: root/docs/topics/forms
AgeCommit message (Collapse)Author
2014-08-27[1.7.x] Fixed #23075 -- Added documentation on novalidate attribute and made ↵Erik Romijn
it default for admin Backport of cbdda28208c9c2aea479d5a482ff27bf37869d34 from master.
2014-06-26[1.7.x] Fixed and enhanced new HTML form docs.Matt Deacalion Stevens
Backport of ec85df2fa5 from master
2014-06-25[1.7.x] Fixed typo in revamped forms intro doc.Ramiro Morales
Backport of 77c0a904cb 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-04[1.7.x] Fixed #22747 -- Add backwards compatibility tip for new behavior of ↵Tim Graham
formset.save(commit=False). Thanks django at patjack.co.uk. Backport of 2f7a7842ba 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-21[1.7.x] Fixed #22639 -- Added missing imports in docsNiclas Åhdén
Added ModelForm and NON_FIELD_ERRORS imports. Backport of 64ee097b3b from master
2014-05-16[1.7.x] Fixed #22622 -- Added ugettext_lazy import in docsNiclas Åhdén
Backport of 7271f5db78 from master
2014-04-22[1.7.x] Various documentation typo/spelling fixesMarti Raudsepp
Errors detected by Topy (https://github.com/intgr/topy), all changes verified by hand. Backport of 11d453bcad from master
2014-03-30[1.7.x] Corrected an import in a model form docs example.Ramiro Morales
cb5dd99bb4 from master.
2014-02-28Fixed spelling mistakes in docs.Tim Graham
2014-02-28Fixed doc typos.Tim Graham
2014-02-25Fixed docs typos.Szczepan Cieślik
2014-02-13Fixed #21951 -- Updated docs to use __str__ for Python 3Alasdair Nicol
Thanks Tim Graham for the report and recommendations
2014-02-08Fixed #16192 -- Made unique error messages in ModelForm customizable.Loic Bistuer
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.
2014-01-23Fixed #21847 -- Clarified where ContactForm was definedTom Atkins
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.
2013-12-14Fixed #21539 -- Added example of modelformset_factory's form argumentAlasdair Nicol
2013-12-09Fixed #21560 -- missing 'slug' field in example codeChristian Schmitt
I updated the documentation, that the modelform now includes the 'slug' field.
2013-11-22Improved docs for ModelFormSet.clean().Loic Bistuer
2013-10-15Improvement on InlineFormSet doc, refs #21006Tianyi Wang
2013-10-15Fixed #21006 -- Added example code for overriding methods on an InlineFormSet.Tianyi Wang
Thanks treysta at gmail.com for the suggestion.
2013-10-15Merge pull request #1382 from loic/ticket19617Marc Tamlyn
Fixed #19617 -- Refactored form metaclasses to support more inheritance scenarios.
2013-10-14Fixed #21223 -- Added form.id_for_label to topic guide.Sorcha Bowler
Thanks ebertti at yahoo.com.br for the suggestion.
2013-10-14Fixed #8620 -- Updated the Form metaclass to support excluding fields by ↵Loic Bistuer
shadowing them.
2013-10-14Fixed #19617 -- Refactored Form metaclasses to support more inheritance ↵Loic Bistuer
scenarios. Thanks apollo13, funkybob and mjtamlyn for the reviews.
2013-10-14Clarfied the ModelForm docs with respect to generated vs. declared fields.Loic Bistuer
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.
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