summaryrefslogtreecommitdiff
path: root/django/forms/fields.py
AgeCommit message (Collapse)Author
2017-06-01[1.11.x] Fixed #28242 -- Moved ImageField file extension validation to the ↵Manatsawin Hanmongkolchai
form field. Backport of a0c07d77fc313388c72a17cd59411265069f037f from master
2017-02-20[1.11.x] Refs #23151 -- Removed RegexField's unused error_message parameter.Tim Graham
Should have been removed in b6ea1961eb6816dee4370fb0ebd49dba29478db1. Backport of afcf44c10108141e66a8aef0a3cbc151b1c16855 from master
2016-11-11Fixed #27431 -- Prevented disabled form fields from appearing as changed.Kenneth Veldman
2016-11-06Fixed #27369 -- Prevented widgets from being shared between form field ↵Michal Petrucha
instances.
2016-09-16Fixed #27235 -- Removed some usage of mutable default arguments.Chris Lamb
2016-09-03Replaced smart_* by force_* calls whenever possibleClaude Paroz
The smart_* version should only be used when a lazy string should keep its lazy status.
2016-08-06Fixed #27015 -- Prevented HTML-invalid minlength/maxlength on hidden inputsClaude Paroz
2016-07-14Fixed #26821 -- Fixed forms.Email/URLField crash on None value.Priy
2016-07-14Fixed #26890 -- Fixed IntegerField crash on Unicode numbers.Jon Dufresne
2016-06-13Fixed #4136 -- Made ModelForm save empty values for nullable CharFields as NULL.Jon Dufresne
Previously, empty values were saved as strings.
2016-04-24Fixed #26534 -- Fixed boolean form fields has_changed() with hidden input.David Sanders
2016-04-22Fixed #26528 -- Allowed any iterable (e.g. tuple) as validators kwarg for ↵Loïc Bistuer
form/model fields.
2016-04-19Fixed #26516 -- Added minlength attribute when forms.CharField.min_length is ↵Jon Dufresne
set.
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2016-01-28Fixed #26129 -- Made invalid forms display initial values of disabled fields.Tim Graham
2016-01-23Refs #26104 -- Replaced unnecessary force_str() with force_text().Tim Graham
2016-01-22Fixed #26104 -- Fixed TypeError when passing number to forms.DurationField.Alexander Gaevsky
2015-12-17Fixed #25942 -- Fixed TypedChoiceField.has_changed with nullable fieldClaude Paroz
This fixes a regression introduced by 871440361.
2015-09-23Refs #23162 -- Removed forms.Field._has_changed() method.Tim Graham
Per deprecation timeline.
2015-09-23Refs #23151 -- Removed RegexField.error_message per deprecation timeline.Tim Graham
2015-09-18Fixed #24636 -- Added model field validation for decimal places and max digits.Iulia Chiriac
2015-09-16Refs #25294 -- Moved BoundField to django.forms.boundfield.Moritz Sichert
2015-09-16Fixed #25294 -- Allowed custom BoundFields on forms.Moritz Sichert
2015-07-17Fixed #16501 -- Added an allow_unicode parameter to SlugField.Edward Henderson
Thanks Flavio Curella and Berker Peksag for the initial patch.
2015-07-16Fixed #25078 -- Added support for disabled form fieldsClaude Paroz
Thanks Keryn Knight and Tim Graham for the reviews.
2015-07-01Fixed #4960 -- Added "strip" option to CharFieldCurtis
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-06-16Fixed #24948 -- Fixed crash when uploading bitmap images in forms.ImageFieldAndriy Sokolovskiy
2015-03-05Fixed #24428 -- Fixed has_changed for fields with coercionClaude Paroz
Thanks Carsten Fuchs for the report.
2015-02-27Fixed #24229 -- Changed IntegerField to clean floats representing integersJon Dufresne
2015-02-14Added missing return value to DurationField.prepare_value(); refs #24339.Michael Angeletti
2015-02-14Fixed #24339 -- Fixed crash with empty DurationField form field.Michael Angeletti
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-05Removed old import aliases.Tim Graham
2015-01-19Removed IPAddressField per deprecation timeline; refs #20439.Tim Graham
2015-01-17Removed support for SplitDateTimeWidget with DateTimeField per deprecation ↵Tim Graham
timeline. refs #8898
2014-12-20Fixed #2443 -- Added DurationField.Marc Tamlyn
A field for storing periods of time - modeled in Python by timedelta. It is stored in the native interval data type on PostgreSQL and as a bigint of microseconds on other backends. Also includes significant changes to the internals of time related maths in expressions, including the removal of DateModifierNode. Thanks to Tim and Josh in particular for reviews.
2014-12-12Fixed #23674 -- Fixed a crash when a MultiValueField has invalid data.Grzegorz Slusarek
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
2014-11-12Fixed #23795 -- Fixed a regression in custom form fieldsBaptiste Mispelon
Custom form fields having a `queryset` attribute but no `limit_choices_to` could no longer be used in ModelForms. Refs #2445. Thanks to artscoop for the report.
2014-11-04Fixed #13181 -- Added support for callable choices to forms.ChoiceFieldPeter Inglesby
Thanks vanschelven and expleo for the initial patch.
2014-09-16Fixed #19463 -- Added UUIDFieldMarc Tamlyn
Uses native support in postgres, and char(32) on other backends.
2014-09-05Limited lines to 119 characters in django/Tim Graham
refs #23395.
2014-08-15Fixed #23162 -- Renamed forms.Field._has_changed() to has_changed().Gabriel Muñumel
2014-08-03Fixed #23151 -- Deprecated RegexField.error_message.Tim Graham
Thanks Baptiste Mispelon for the suggestion.
2014-08-01Fixed #23103 -- Annotated ImageField file with image and content_type ↵Petras Zdanavičius
attributes. Thanks Jeremy Dunck for the suggestion and Nick Sanford for review.
2014-07-29Fixed #23129 -- Added 'true' and 'false' to `NullBooleanField`.Kit La Touche
JavaScript serializations of forms will sometimes render the boolean values as the strings 'true' and 'false', in lower case. Rather than repeat boilerplate in the JavaScript to circumvent this, it seems reasonable to allow Django to understand the lower-case versions of the booleans.
2014-06-21Prevented evaluation of a possible lazy messageClaude Paroz
As far as possible, message evaluation should not happen in field __init__ (often run at import time).
2014-05-28Fixed several typos in DjangoAlex Gaynor
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.