summaryrefslogtreecommitdiff
path: root/django/forms/fields.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34380 -- Allowed specifying a default URL scheme in forms.URLField.Coen van der Kamp2023-04-281-3/+17
| | | | This also deprecates "http" as the default scheme.
* Fixed #34077 -- Added form field rendering.David Smith2023-03-241-0/+2
|
* Fixed #34388 -- Allowed using choice enumeration types directly on model and ↵T. Franzel2023-03-211-0/+3
| | | | form fields.
* Fixed #19215 -- Fixed rendering ClearableFileInput when editing with invalid ↵Marcelo Galigniana2022-10-251-4/+2
| | | | | | files. Thanks Michael Cardillo for the initial patch.
* Fixed #32559 -- Added 'step_size’ to numeric form fields.Kapil Bansal2022-05-121-3/+11
| | | | Co-authored-by: Jacob Rief <jacob.rief@uibk.ac.at>
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-170/+267
|
* Fixed #32949 -- Restored invalid number handling in DecimalField.validate().yakimka2021-07-211-0/+11
| | | | | | | | DecimalField must itself validate() values, such as NaN, which cannot be passed to validators, such as MaxValueValidator, during the run_validators() phase. Regression in cc3d24d7d577f174937a0744d886c4c7123cfa85.
* Fixed #32807 -- Fixed JSONField crash when redisplaying None values.Dan Strokirk2021-06-281-0/+2
| | | | Thanks to Alex Hill for the initial patch.
* Fixed #32821 -- Updated os.scandir() uses to use a context manager.Chris Jerdonek2021-06-071-7/+9
|
* Improved performance of DecimalField.David Smith2021-01-161-2/+1
| | | strip() is unnecessary because decimal.Decimal() strips the input value.
* Fixed #32080 -- Fixed displaying Unicode chars in forms.JSONField and ↵Qi Zhao2020-10-091-1/+1
| | | | read-only JSONField values in admin.
* Removed redundant forms.DecimalField.validate() in favor of DecimalValidator.Jon Dufresne2020-07-271-7/+0
|
* Fixed #12990, Refs #27694 -- Added JSONField model field.sage2020-05-081-3/+68
| | | | | | | | | | | Thanks to Adam Johnson, Carlton Gibson, Mariusz Felisiak, and Raphael Michel for mentoring this Google Summer of Code 2019 project and everyone else who helped with the patch. Special thanks to Mads Jensen, Nick Pope, and Simon Charette for extensive reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #15982 -- Added DATE_INPUT_FORMATS to forms.DateTimeField default ↵Claude Paroz2020-01-071-1/+7
| | | | input formats.
* Fixed #11385 -- Made forms.DateTimeField accept ISO 8601 date inputs.Claude Paroz2020-01-061-2/+7
| | | | | Thanks José Padilla for the initial patch, and Carlton Gibson for the review.
* Fixed #30899 -- Lazily compiled import time regular expressions.Hasan Ramezani2019-10-291-1/+2
|
* Fixed #30839 -- Fixed Field.__deepcopy__() so forms don't share error messages.Hasan Ramezani2019-10-081-0/+1
|
* Removed some outdated backwards compatibility imports and misleading comments.Mads Jensen2019-09-241-2/+0
| | | | | | | | EmptyResultSet moved in 46509cf13dbf049f75077981c29ef2c60b5a96ab. FieldDoesNotExist moved in 8958170755b37ce346ae5257c1000bd936faa3b0. BoundField and pretty_name moved in 8550161e531a603d57723850fb09c4c9b7ca60b9. EMPTY_VALUES moved in 471596fc1afcb9c6258d317c619eaf5fd394e797. BaseRunserverCommand moved in 5c53e30607014163872e89c221b206992a9acfef.
* Refs #29689 -- Moved FilePathField choices sorting outside the loop.Sergey Fedoseev2018-08-291-1/+1
|
* Fixed #29689 -- Improved performance of FileSystemStorage.listdir() and ↵Federico Bond2018-08-201-11/+11
| | | | FilePathField with os.scandir().
* Refs #29426 -- Made UUIDField render values with dashes.Tim Graham2018-08-181-1/+1
|
* Fixed #29623 -- Fixed translation failure of DurationField's "overflow" ↵Tim Graham2018-08-081-7/+5
| | | | error message.
* Fixed #29284 -- Made ImageField render with accept="image/*"' HTML attribute.safu92018-04-041-1/+7
|
* Refs #29006 -- Simplified handling of SNaN values in DecimalField.validate().Sergey Fedoseev2018-01-111-1/+1
|
* Fixed #29006 -- Fixed DecimalField.clean() crash on sNaN values.Fabio Bonelli2018-01-101-1/+1
|
* Fixed #28882 -- Fixed cleaning of disabled MultiValueFields.Tim Graham2018-01-051-0/+4
| | | | Thanks avalanchy for the initial patch.
* Fixed #28982 -- Simplified code with and/or.Дилян Палаузов2018-01-031-5/+1
|
* Used Decimal.scaleb() in backends.utils.format_number() and ↵Mariusz Felisiak2017-12-301-1/+1
| | | | DecimalField.widget_attrs() to improve performance.
* Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope2017-12-111-2/+1
|
* Fixed #28474 -- Made DurationField raise ValidationError for inputs that ↵Srinivas Reddy Thatiparthy2017-10-251-1/+10
| | | | raised OverflowError.
* Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham2017-09-071-2/+3
| | | | This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
* Fixed #28555 -- Made CharField convert whitespace-only values to the ↵Josh Schneier2017-09-051-3/+4
| | | | empty_value when strip is enabled.
* Fixed #28201 -- Added ProhibitNullCharactersValidator and used it on ↵Alejandro Zamora2017-08-121-0/+1
| | | | CharField form field.
* Simplified Float/DecimalField.validate() with math.isfinite().Srinivas Reddy Thatiparthy2017-08-091-9/+5
|
* Fixed #28264 -- Made FilePathField sort files and directories when ↵Srinivas Reddy Thatiparthy2017-07-291-2/+2
| | | | recursive=True.
* Fixed #28387 -- Fixed has_changed() for disabled form fields that subclass it.Srinivas Reddy Thatiparthy2017-07-141-0/+8
|
* Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen2017-06-281-3/+2
|
* Fixed #28192 -- Required passing optional form field args as keyword args.Claude Paroz2017-06-031-44/+36
|
* Refs #28192 -- Made MultiValueField/ComboField fields argument required as ↵Tim Graham2017-06-031-2/+2
| | | | documented.
* Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne2017-06-011-2/+2
|
* Fixed #28242 -- Moved ImageField file extension validation to the form field.Manatsawin Hanmongkolchai2017-06-011-0/+1
|
* Refs #27795 -- Replaced many force_text() with str()Claude Paroz2017-04-271-12/+11
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Used yield from.Vytis Banaitis2017-02-231-2/+1
|
* Refs #27656 -- Updated django.forms/http docstring verbs according to PEP 257.Anton Samarchyan2017-02-201-42/+34
|
* Refs #23151 -- Removed RegexField's unused error_message parameter.Tim Graham2017-02-201-3/+1
| | | | Should have been removed in b6ea1961eb6816dee4370fb0ebd49dba29478db1.
* Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz2017-02-071-2/+2
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments.Vytis Banaitis2017-02-011-12/+12
|
* Refs #23919 -- Used DeclarativeFieldsMetaclass.__prepare__() for tracking ↵Tim Graham2017-01-271-7/+0
| | | | form field order.
* Removed unnecessary force_text() in BaseTemporalField.to_python().Tim Graham2017-01-261-11/+7
| | | | This seems unneeded since its introduction in da3aa22d04d6452f87abbb1a0fee8a90a61eff5b.
* Refs #23919, #27778 -- Removed obsolete mentions of unicode.Vytis Banaitis2017-01-261-2/+2
|