summaryrefslogtreecommitdiff
path: root/tests/forms_tests
AgeCommit message (Collapse)Author
2015-04-01[1.8.x] Adapted form regression test to new translationsClaude Paroz
Backport of 2112b7d78 from master.
2015-03-27[1.8.x] Fixed #24469 -- Refined escaping of Django's form elements in ↵Moritz Sichert
non-Django templates. Backport of 1f2abf784a9fe550959de242d91963b2ad6f7e9c from master
2015-02-24[1.8.x] Fixed #24391 -- Made BoundField.value() cache callable values.Michael Angeletti
Backport of 65441bbdb02427655869c42791a0bc5a9c631292 from master
2015-02-23[1.8.x] Guaranteed removal of temporary files during tests.Aymeric Augustin
Dropped the DJANGO_TEST_TEMP_DIR environment variable. Before this change, proper removal depended on the developer passing dir=os.environ['DJANGO_TEST_TMP_DIR'] to tempfile functions. Backport of 934400759de817471ff37d736686201d7ae34e82 from master
2015-02-14[1.8.x] Added missing return value to DurationField.prepare_value(); refs ↵Michael Angeletti
#24339. Backport of 49647bec6e86b8d3d370ea1d8a80423185502c5a from master
2015-02-14[1.8.x] Fixed #24339 -- Fixed crash with empty DurationField form field.Michael Angeletti
Backport of 8a21d250334f56845f255be5534b01d8c6eda314 from master
2015-02-09[1.8.x] Sorted imports with isort; refs #23860.Tim Graham
Backport of 0ed7d155635da9f79d4dd67e4889087d3673c6da from master
2015-01-20[1.8.x] Fixed typos in code comments.Adam Taylor
Backport of 039465a6a7a18f48ea77ceadb6949990c0ec92e1 from master
2015-01-15Fixed #23712 -- Fixed KeyError with BaseForm._html_output()Yang Liu
2015-01-06Fixed #20003 -- Improved and extended URLValidatorDanilo Bargen
This adds support for authentication data (`user:password`) in URLs, IPv6 addresses, and unicode domains. The test suite has been improved by adding test URLs from http://mathiasbynens.be/demo/url-regex (with a few adjustments, like allowing local and reserved IPs). The previous URL validation regex failed this test suite on 13 occasions, the validator was updated based on https://gist.github.com/dperini/729294.
2015-01-01Fixed #23891 -- Moved deprecation of IPAddressField to system check framework.Tim Graham
Thanks Markus Holtermann for review.
2014-12-31Fixed #24008 -- Fixed ValidationError crash with list of dicts.Andrey Maslov
2014-12-31Renamed tests for util -> utils moves; refs #17627.Tim Graham
2014-12-30Applied ignore_warnings to Django testsClaude Paroz
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-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-11-19Removed usage of a global variable.Aymeric Augustin
2014-11-04Fixed #13181 -- Added support for callable choices to forms.ChoiceFieldPeter Inglesby
Thanks vanschelven and expleo for the initial patch.
2014-11-03Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag
2014-10-07Fixed #23594 -- Fixed deepcopy on ErrorList.Loic Bistuer
Thanks Troy Grosfield for the report and Tim Graham for the tests.
2014-09-16Fixed #19463 -- Added UUIDFieldMarc Tamlyn
Uses native support in postgres, and char(32) on other backends.
2014-08-29Fixed #21201 -- Improved customization of ClearableFileInput.Vlastimil Zíma
2014-08-22Tweaked docstrings from previous commit.Tim Graham
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-03Fixed flake8 warning.Tim Graham
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-07-28Fixed #23113 -- ChoiceInput.render should take specified attrs into account.Simon Charette
Thanks to Tim Graham for the review.
2014-07-26Fixed #16617 -- Added 'value' to BaseValidator params.Anubhav Joshi
Also allowed overriding the default messages in subclasses of BaseValidator. Thanks sperrygrove for initial patch.
2014-07-09Fixed #19671 -- Added warnings that null and validators are ignored for ↵Anubhav Joshi
ManyToManyField. Thanks Loic Bistuer and Tim Graham for help and review.
2014-07-05Fixed #22950 -- Eased markup customization for choice field renderingClaude Paroz
Thanks Patrick Robertson for the report.
2014-07-05Ensured bound field renders as unicode safe dataClaude Paroz
Refs #22950.
2014-07-04Fixed #22915 -- Document backward incompatible changes in the ↵Loic Bistuer
ValidationError constructor. This patch also fixes update_error_dict to better handle the use case described in this ticket, previously the type of the provided container could be lost in some conditions. Thanks Russell Keith-Magee for the report and Tim Graham for review.
2014-06-04Fixed #22684 -- Amended SelectDateWidget.empty_label to accept a tuple of ↵gyx1000
values. Thanks danielsamuels for the report
2014-06-02Fixed #11776 -- Added CSS class for non-field/top of form errors.Nick Presta
Thanks Daniel Pope for the suggestion.
2014-05-28Fixed several typos in DjangoAlex Gaynor
2014-05-28Fixed #22684 -- Added `empty_label` option on ↵Guillaume Pannatier
`django.forms.extras.widets.SelectDateWidget` Thanks danielsamuels for the report
2014-05-26Restored Python 2 compatibility.Florian Apolloner
2014-05-25Fixed a few warnings in the testsuite.Florian Apolloner
2014-05-16Fixed #22628 -- Took initial forms into account when combining ↵Stephen Burrows
FormSet.min_num and FormSet.extra. Forwardport of 79f15ab1ef from stable/1.7.x
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
2014-04-16Fixed #22378 -- Updated \d to [0-9]+ in urlpatterns of docs and tests.chriscauley
Thanks tomwys for the suggestion.
2014-04-09Used more specific test assertions.Aymeric Augustin
2014-04-06Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi