summaryrefslogtreecommitdiff
path: root/django/forms/forms.py
AgeCommit message (Collapse)Author
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-06-28Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen
2017-04-27Refs #27795 -- Replaced many force_text() with str()Claude Paroz
Thanks Tim Graham for the review.
2017-04-01Fixed #27989 -- Preserved empty QueryDicts for form's data/files args.Stefan Wehrmeyer
2017-03-04Refs #27795 -- Removed unneeded force_text callsClaude Paroz
Thanks Tim Graham for the review.
2017-02-20Refs #27656 -- Updated django.forms/http docstring verbs according to PEP 257.Anton Samarchyan
2017-02-07Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz
Thanks Tim Graham for the review.
2017-01-27Refs #23919 -- Used DeclarativeFieldsMetaclass.__prepare__() for tracking ↵Tim Graham
form field order.
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-12-27Fixed #15667 -- Added template-based widget rendering.Preston Timmons
Thanks Carl Meyer and Tim Graham for contributing to the patch.
2016-08-18Fixed #27068 -- Unified form field initial data retrieval.Jon Dufresne
2016-07-27Fixed #26917 -- Fixed crash in disabled ModelChoiceFields.Tim Graham
Partially reverted refs #25532 to fix a regression in Django 1.10. This reintroduces a crash for disabled forms.JSONField (refs #26949), however, that issue is also present on Django 1.9. Thanks Ryan Schave for the test.
2016-04-21Fixed #22383 -- Added support for HTML5 required attribute on required form ↵Jon Dufresne
fields.
2016-04-14Refs #26502 -- Added choices to Form.__getitem__() KeyError message.Tim Graham
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2016-04-01Fixed #25532 -- Properly redisplayed JSONField form input valuesClaude Paroz
Thanks David Szotten for the report and Tommy Beadle for code inspiration. Thanks Tim Graham for the review.
2015-09-24Refs #25294 -- Added BoundField import for backwards compatibility.Moritz Sichert
2015-09-16Refs #25294 -- Moved BoundField to django.forms.boundfield.Moritz Sichert
2015-09-16Fixed #25294 -- Allowed custom BoundFields on forms.Moritz Sichert
2015-08-21Removed BaseForm._raw_value().Tim Graham
Unused since efb0100ee67931329f17bc9988ecd5f0619cea14.
2015-08-04Used @cached_property for BaseForm.changed_data.Curtis Maloney
2015-07-16Fixed #25078 -- Added support for disabled form fieldsClaude Paroz
Thanks Keryn Knight and Tim Graham for the reviews.
2015-06-06Fixed #12437 -- Added css_classes to Form._html_output()Markus Amalthea Magnuson
2015-06-04Removed comment from Form.changed_data; refs #24191Alasdair Nicol
2015-05-25Fixed #24788 -- Allowed Forms to specify a prefix at the class level.Paweł Marczewski
2015-05-06Fixed #24497 -- Added Widget.supports_microseconds attributewdmgsm
2015-03-27Fixed #24469 -- Refined escaping of Django's form elements in non-Django ↵Moritz Sichert
templates.
2015-03-18Refs #24469 -- Fixed escaping of forms, fields, and media in non-Django ↵Moritz Sichert
templates.
2015-03-16Fixed #5986 -- Added ability to customize order of Form fieldsThomas Tanner
2015-02-24Fixed #24391 -- Made BoundField.value() cache callable values.Michael Angeletti
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-18Removed forms.forms.get_declared_fields() per deprecation timeline; refs #19617.Tim Graham
2015-01-15Fixed #23712 -- Fixed KeyError with BaseForm._html_output()Yang Liu
2014-12-03Removed redundant numbered parameters from str.format().Berker Peksag
Since Python 2.7 and 3.1, "{0} {1}" is equivalent to "{} {}".
2014-09-05Limited lines to 119 characters in django/Tim Graham
refs #23395.
2014-08-22Fixed #23167 -- Added BaseForm.__repr__()areski
Thanks Keryn Knight for the idea.
2014-08-15Fixed #23162 -- Renamed forms.Field._has_changed() to has_changed().Gabriel Muñumel
2014-08-04Fixed #22745 -- Prevented reevaluation of ModelChoiceField's queryset when ↵Vincent-Vega
accesssing BoundField's attrs. Thanks Christian Schmitt for review.
2014-08-04Corrected a comment in forms/forms.py; refs #16612.Tim Graham
2014-08-02Fixed two typos in docstrings.Baptiste Mispelon
2014-07-05Ensured bound field renders as unicode safe dataClaude Paroz
Refs #22950.
2014-06-02Fixed #11776 -- Added CSS class for non-field/top of form errors.Nick Presta
Thanks Daniel Pope for the suggestion.
2014-05-24Fixed #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.
2014-05-13Fixed #22533 -- Added label_suffix parameter to form fields.Julen Ruiz Aizpuru
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.
2014-05-10Fixed #22502 -- Fixed microseconds/default/form interactionStephen Burrows
Made explicit lack of microsecond handling by built-in datetime form fields. Used that explicitness to appropriately nix microsecond values in bound fields. Thanks Claude Paroz for the review.
2014-05-05Fixed #22570 -- Made Form.__getitem__ KeyError more descriptive.Ben Davis