summaryrefslogtreecommitdiff
path: root/tests/forms_tests
AgeCommit message (Collapse)Author
2016-08-01[1.10.x] Fixed #26927 -- Made subwidget iteration pass disabled and required ↵Jon Dufresne
attributes. Backport of ac3aaaa740dcf9c6efd2f88ee9219c1924c7695e from master
2016-07-14[1.10.x] Fixed #26890 -- Fixed IntegerField crash on Unicode numbers.Jon Dufresne
Backport of 76e19da5b0385d4f8afda509e0b60f77f7ffc4c2 from master
2016-07-01[1.10.x] Replaced use of TestCase.fail() with assertRaises().Tim Graham
Also removed try/except/fail antipattern that hides exceptions. Backport of c9ae09addffb839403312131d4251e9d8b454508 from master
2016-06-16[1.10.x] Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
Backport of 4f336f66523001b009ab038b10848508fd208b3b from master
2016-05-14Simplified a ClearableFileInput test.Tim Graham
2016-04-28Refs #15667 -- Removed choices argument from some RendererMixin methods.Tim Graham
RendererMixin will soon be removed but this removal and the corresponding test changes stand on their own.
2016-04-24Fixed #26534 -- Fixed boolean form fields has_changed() with hidden input.David Sanders
2016-04-23Fixed #26533 -- Renamed Widget._format_value() to format_value().Tim Graham
2016-04-22Moved declaration of test form inside the relevant test for clarity.Loïc Bistuer
2016-04-22Fixed #26528 -- Allowed any iterable (e.g. tuple) as validators kwarg for ↵Loïc Bistuer
form/model fields.
2016-04-21Fixed #22383 -- Added support for HTML5 required attribute on required form ↵Jon Dufresne
fields.
2016-04-19Fixed #26516 -- Added minlength attribute when forms.CharField.min_length is ↵Jon Dufresne
set.
2016-04-14Refs #26502 -- Added choices to Form.__getitem__() KeyError message.Tim Graham
2016-04-11Split form's test_fields.py into different files.Berker Peksag
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-04-04Fixed W503 flake8 warnings.Tim Graham
2016-03-25Removed duplicate definition of ChoiceFormSet.Jon Dufresne
2016-03-15Fixed #25364 -- Added generic way to test on all browsers supported by selenium.Akshesh
Browser names should be passed as a comma separated list to the --selenium flag. Thanks Tim Graham, Simon Charette and Moritz Sichert for review and discussion.
2016-02-24Fixed #26267 -- Fixed BoundField to reallow slices of subwidgets.Jon Dufresne
2016-02-15Fixed #24727 -- Prevented ClearableFileInput from masking exceptions on Python 2Berker Peksag
2016-02-15Fixed #26212 -- Made forms.FileField and translation.lazy_number() picklable.Alexey Kotlyarov
2016-02-02Fixed #25731 -- Removed unused choices kwarg for Select.render()jpic
2016-01-29Refs #26022 -- Used context manager version of assertRaisesMessage in tests.Hasan
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2016-01-28Fixed #26129 -- Made invalid forms display initial values of disabled fields.Tim Graham
2016-01-25Fixed #26125 -- Fixed E731 flake warnings.userimack
2016-01-22Fixed #26104 -- Fixed TypeError when passing number to forms.DurationField.Alexander Gaevsky
2016-01-21Changed `action="."` to `action=""` in tests and docs.Luke Plant
`action="."` strips query parameters from the URL which is not usually what you want. Copy-paste coding of these examples could lead to difficult to track down bugs or even data loss if the query parameter was meant to alter the scope of a form's POST request.
2015-12-31Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek
Thanks to Tim Graham for the review.
2015-12-30Fixed #26017 -- Removed a dependency on the name of the top-level tests ↵Raphaël Hertzog
directory.
2015-12-17Fixed #25942 -- Fixed TypedChoiceField.has_changed with nullable fieldClaude Paroz
This fixes a regression introduced by 871440361.
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
2015-11-09Fixed #25683 -- Allowed ModelChoiceField(queryset=...) to accept Managers.Marti Raudsepp
This fixes a regression from refs #25496.
2015-10-27Fixed #25550 -- Deprecated direct assignment to the reverse side of a ↵Tim Graham
related set.
2015-10-19Fixed #25567 -- Removed obsolete MEDIA_URL fallback in Media.absolute_pathClaude Paroz
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-23Fixed #25410 -- Fixed empty ClearableFileInput crash on Python 2.Tim Graham
Reverted "Fixes #24727 -- Prevented ClearableFileInput from masking exceptions on Python 2" and added a regression test. This reverts commit 5c412dd8a724b263489c1bd7a2fea381460665d7.
2015-09-16Refs #25294 -- Moved BoundField to django.forms.boundfield.Moritz Sichert
2015-09-16Fixed #25294 -- Allowed custom BoundFields on forms.Moritz Sichert
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-09-09Refs #25300 -- Fixed reference to TextInput in a test.Moritz Sichert
2015-08-31Rewrote form widget tests as proper unittests.Preston Timmons
This is preparation for landing the template-based widget rendering patch and goes a long way to making these tests more useful for future development. The old doctest heritage is strong here.
2015-08-31Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant
2015-08-22Fixed #25300 -- Added unit tests for BoundField.id_for_labelMaxime Lorant
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-21Fixed #25129 -- Made model instance defaults work with migrations (refs #24919).Tim Graham
2015-07-21Refs #24919 -- Made test models serializable for migrations.Tim Graham
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.