summaryrefslogtreecommitdiff
path: root/django/forms/utils.py
AgeCommit message (Collapse)Author
2022-05-17Refs #32339 -- Deprecated default.html form template.David Smith
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2022-05-05Fixed #32339 -- Added div.html form template.David Smith
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-09-24Fixed #33130 -- Restored form errors to be a dict.Jaap Roes
Regression in 456466d932830b096d39806e291fe23ec5ed38d5.
2021-09-20Fixed #31026 -- Switched form rendering to template engine.David Smith
Thanks Carlton Gibson, Keryn Knight, Mariusz Felisiak, and Nick Pope for reviews. Co-authored-by: Johannes Hoppe <info@johanneshoppe.com>
2021-01-19Refs #32365 -- Allowed use of non-pytz timezone implementations.Paul Ganssle
2020-02-13Fixed #30261 -- Prevented Form._html_output() from mutating errors if hidden ↵Hasan Ramezani
fields have errors.
2019-09-24Removed some outdated backwards compatibility imports and misleading comments.Mads Jensen
EmptyResultSet moved in 46509cf13dbf049f75077981c29ef2c60b5a96ab. FieldDoesNotExist moved in 8958170755b37ce346ae5257c1000bd936faa3b0. BoundField and pretty_name moved in 8550161e531a603d57723850fb09c4c9b7ca60b9. EMPTY_VALUES moved in 471596fc1afcb9c6258d317c619eaf5fd394e797. BaseRunserverCommand moved in 5c53e30607014163872e89c221b206992a9acfef.
2019-06-28Fixed #30400 -- Improved typography of user facing strings.Jon Dufresne
Thanks Claude Paroz for assistance with translations.
2018-01-18Refs #23668 -- Removed passing default argument of current TZ to ↵Jon Dufresne
make_aware()/naive.
2017-07-31Avoided creating temporary lists for obtaining the first item.Sergey Fedoseev
2017-05-27Fixed #27922 -- Added ErrorDict.get_json_data().Tim Heap
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-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-22Refs #23919 -- Replaced six.reraise by raiseClaude Paroz
2017-01-21Refs #23919 -- Removed misc references to Python 2.Tim Graham
2017-01-18Refs #23919 -- Removed obsolete __ne__() methods.Aymeric Augustin
__ne__() defaults to the opposite of __eq__() on Python 3 when it doesn't return NotImplemented.
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 #27642 -- Made forms.utils.flatatt() omit 'None' values from attrs.Illia Volochii
2015-09-16Refs #25294 -- Moved BoundField to django.forms.boundfield.Moritz Sichert
2015-09-14Fixed typo in django/forms/utils.py docstring.Kholid Fuadi
2015-06-08Made flatatt docstring match realityMatthew Schinckel
The spirit of the docstring was correct, but referred to an outdated version of the function.
2015-03-27Fixed #24469 -- Refined escaping of Django's form elements in non-Django ↵Moritz Sichert
templates.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-12-03Removed redundant numbered parameters from str.format().Berker Peksag
Since Python 2.7 and 3.1, "{0} {1}" is equivalent to "{} {}".
2014-11-21Fixed #23883 -- Stopped flatatt modifying its argumentTim Heap
2014-10-07Fixed #23594 -- Fixed deepcopy on ErrorList.Loic Bistuer
Thanks Troy Grosfield for the report and Tim Graham for the tests.
2014-06-02Fixed #11776 -- Added CSS class for non-field/top of form errors.Nick Presta
Thanks Daniel Pope for the suggestion.
2014-03-22Fixed #20684 -- Added support for HTML5 boolean attributes to form widgets.Loic Bistuer
2014-03-08Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warningsClaude Paroz
Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
2014-03-06Reworked ErrorDict.as_json() to prevent unnecessary ↵Loic Bistuer
serialization/deserialization step. Thanks @apollo13 for the suggestion. Refs #17413.
2014-02-28Fixed #21962 -- Added escape_html flag to ErrorDict.as_json()vvojvoda
2013-12-18Refs #17413 -- Added isinstance backward compatibility on ErrorList.Loic Bistuer
2013-12-16Fixed #17413 -- Serialization of form errors along with all metadata.Loic Bistuer
2013-12-10Fixed E124 pep8 warnings.Loic Bistuer
2013-11-02More attacking E302 violatorsAlex Gaynor
2013-10-17Fixed #21270 -- Fixed E701 pep8 warningsAlasdair Nicol
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.