summaryrefslogtreecommitdiff
path: root/django/forms/fields.py
AgeCommit message (Collapse)Author
2014-06-21[1.7.x] Prevented evaluation of a possible lazy messageClaude Paroz
As far as possible, message evaluation should not happen in field __init__ (often run at import time). Backport of cecbb71312a from master.
2014-05-29[1.7.x] Fixed several typos in DjangoAlex Gaynor
Backport of 1dcc603eff from master
2014-04-26[1.7.x] Fix many many typos in comments throughout the codebaseAlex Gaynor
Backport of 2bcb8bfc8d from master
2014-03-13Fixed #22245 -- Avoided widget overwrite in forms.IntegerField subclassesClaude Paroz
Thanks Jeroen Pulles for the report and Simon Charette for the review.
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-05Fixed #22206 -- Passed models.TextField.max_length to forms.CharField.maxlengthChris Wilson
2014-02-20Fixed #22097 -- Fixed change detection for TypedChoiceFieldClaude Paroz
Thanks Igor Mitrenko for the report.
2014-02-11Fixed #2445 -- Allowed limit_choices_to attribute to be a callable.Christopher Adams
ForeignKey or ManyToManyField attribute ``limit_choices_to`` can now be a callable that returns either a ``Q`` object or a dict. Thanks michael at actrix.gen.nz for the original suggestion.
2014-01-11Fixed #8898 -- Obsoleted SplitDateTimeWidget usage with DateTimeFieldClaude Paroz
Thanks Tim Graham for the review.
2014-01-11Fixed #21752 -- Prevented custom widget step attribute to be overwrittenClaude Paroz
Thanks orcein at gmail.com for the report.
2013-12-16Removed duplicated `TimeField` in __all__.Artur Barseghyan
2013-12-16Fixed #17413 -- Serialization of form errors along with all metadata.Loic Bistuer
2013-11-28Fixed E125 pep8 warningsChristopher Medrela
2013-11-18Fixed #21397 -- Re-added flexibility to TypedChoiceField coercionClaude Paroz
Thanks Elec for the report and Simon Charette for the review.
2013-11-02Merge pull request #1848 from rayashmanjr/masterAlex Gaynor
Correct flake8 violation E261
2013-11-02Correct flake8 violation E261Ray Ashman Jr
2013-11-02Fixed #21302 -- Fixed unused imports and import *.Tim Graham
2013-10-11Fixed assorted flake8 errors.Tim Graham
2013-09-28Fixed #20439 -- Started deprecation of IPAddressFieldErik Romijn
2013-09-21Ensured that BoundField.as_widget always returns properly localized fields.Florian Apolloner
This is a follow-up to #18777 which improperly converted to strings in prepare_value and as such caused regressions like #21074. Refs #18777, #21074
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-09-10Fixed #19298 -- Added MultiValueField.__deepcopy__Tim Graham
Thanks nick.phillips at otago.ac.nz for the report.
2013-09-06Fixed #4287 -- Fixed NaN and +/- Infinity handling in FloatFieldDaniel Langer
NaN, +Inf, and -Inf are no longer valid values for FloatFields.
2013-09-05Took advantage of django.utils.six.moves.urllib.*.Aymeric Augustin
2013-08-30Fixed #20989 -- Removed useless explicit list comprehensions.Simon Charette
2013-08-06Fixed #15511 -- Allow optional fields on ``MultiValueField` subclasses.Tai Lee
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.
2013-08-02Fixed #18777 -- Localized form fields with as_text/as_hiddenAleksandra Sendecka
Thanks croldan for the report.
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-07-22Fixed #20781 -- Fixed _has_changed regression with MultiValueFieldClaude Paroz
Thanks Tim Graham for the report.
2013-07-19Fixed #20765 -- Set small values of `step` using exponential notation.Simon Charette
Browsers parse small factors of 10 as 0 under decimal notation. Thanks to Trac alias matklad for the report and Claude Paroz for the review.
2013-06-20Fixed #20630 -- Removed `maxlength` attribute from `NumberInput`.Simon Charette
This attribute is only allowed on inputs of type "text", "search", "url", "tel", "email", or "password". Thanks to yoyoma for the report and @bmispelon for the review.
2013-06-18Fixed #20199 -- Allow ModelForm fields to override error_messages from model ↵Loic Bistuer
fields
2013-06-18Refactored ValidationError to allow persisting error params and error codes ↵Loic Bistuer
as the exception bubbles up
2013-06-13Fixed #20594 -- Add validation to models.SlugField.Baptiste Mispelon
Thanks carbonXT for the report.
2013-05-18Fixed #20440 -- Ensured CharField's max_length/min_length are integersTome Cvitan
2013-05-18Added stripping of whitespace for SlugField and URLFieldDeni Bertovic
2013-05-14Fixed #19934 - Use of Pillow is now preferred over PIL.Daniel Lindsley
This starts the deprecation period for PIL (support to end in 1.8).
2013-04-13Fixed #17840 -- Generalized named placeholders in form error messagesClaude Paroz
Also fixed plural messages for DecimalField.
2013-03-25Removed forced typecasting of help_text/label Field argumentsClaude Paroz
In any case, setting those variables to non-ascii utf-8 bytestrings is now considered a programming error.
2013-03-20Fixed #18839 - Field.__init__() now calls super().Carny Cheng
2013-03-19Fixed #18003 -- Preserved tracebacks when re-raising errors.konarkmodi
Thanks jrothenbuhler for draft patch, Konark Modi for updates.
2013-03-14Fixed #17051 -- Removed some 'invalid' field error messagesClaude Paroz
When the 'invalid' error message is set at field level, it masks the error message raised by the validator, if any.
2013-03-14Fixed #20039 -- Fixed has_changed form detection for required TypedChoiceFieldsClaude Paroz
Thanks Florian Apolloner for the report and the review. Also fixes #19643.
2013-03-07Fixed #19997 -- Added custom EMPTY_VALUES to form fieldsClaude Paroz
Thanks Loic Bistuer for the report and the patch.
2013-03-01Fixed #16612 -- Improved has_changed detection for localized field valuesClaude Paroz
Thanks Simon Charette for the review.
2013-02-23Fixed errors introduced in 21f333bcefccc151d6439246f8203d609ab6ca79. Refs #17751Florian Apolloner
2013-02-23Fix #17751: Added stripping of whitespace for ↵Erik Romijn
IPAddressField/GenericIPAddressField
2013-02-23Fixed #19686 -- Added HTML5 number input typeClaude Paroz
Thanks Simon Charette for his help on the patch. Refs #16630.
2013-01-30Fixed #19034 -- Added proper i18n pluralization for max/min length ↵Claude Paroz
validation messages This was made possible by commit 3f1a0c0040b9. Thanks Evil Clay for the report and Alexey Boriskin his work on the ticket.
2013-01-28Added HTML5 url input typeClaude Paroz
Refs #16630.