summaryrefslogtreecommitdiff
path: root/tests/regressiontests/forms
AgeCommit message (Collapse)Author
2013-02-19[1.5.x] Added a default limit to the maximum number of forms in a formset.Aymeric Augustin
This is a security fix. Disclosure and advisory coming shortly.
2013-01-03[1.5.x] Fixed #19545 -- Make sure media/is_multipart work with empty formsetsSimon Charette
Backport of 3fc43c964e from master.
2012-12-31[1.5.x] Fixed #19537 -- Made CheckboxInput._has_changed handle 'False' stringClaude Paroz
Thanks dibrovsd@gmail.com for the report. Backport of d11038acb2 from master.
2012-12-24[1.5.x] Don't rely on dictionary ordering in testsIan Clelland
Backport of b9fc70141abd4c812b03df50452a0d3ed8cd62d2 from master
2012-12-08[1.5.x] Fixed #19357 -- Allow non-ASCII chars in filesystem pathsClaude Paroz
Thanks kujiu for the report and Aymeric Augustin for the review. Backport of c91667338 from master.
2012-12-06[1.5.x] Fixed #18574 -- Make BaseFormSet.is_valid call its underlying forms' ↵Andreas Hug
is_valid Thanks Simon Charette for the report and the initial patch. Backport of 66dfcc10b from master.
2012-12-01[1.5.x] Fixed #19015 -- Add ISO input formats to all formatsClaude Paroz
Backport of 349c4c37f8 from master.
2012-11-25[1.5.x] Enabled SimpleTestCase to be decorated by override_settingsClaude Paroz
Refs #18417. Also fixed some test case classes which subclassed the wrong parent. Backport of a5d47415f from master.
2012-11-05[1.5.x] Fixed #8627 -- Prevented textareas to swallow first newline contentClaude Paroz
Browsers consider the first newline in textareas as some display artifact, not real content. Hence they are not sending it back to the server. If we want to keep initial newlines, we have to add one when we render the textarea. Thanks bastih for the report and initial patch. Backport of 78f66691ee from master.
2012-10-26[1.5.x] Fixed #16820 -- Treated '0' value as True for checkbox inputsClaude Paroz
Thanks Dan Fairs for the report and the initial patch. Backport of be29329cc from master.
2012-10-20Used @override_settings in several tests.Aymeric Augustin
2012-10-13Fixed #16479 - Forms generated from formsets use ErrorList instead of ↵Ludovic Delaveau
supplied error_class Patch with tests from charettes, updated.
2012-10-09Fixed test failure after IDN domain validation fixClaude Paroz
Refs #17867. The address in test_email_regexp_for_performance used to take forever (security issue), then was supposed to fail after the fix (commit 9f8287a3f). Now we are less strict with domain validation, due to new IDN domains, hence the validation of this address pass now.
2012-10-09Moved some email validation tests to validators testsClaude Paroz
2012-10-03Fixed #14567 -- Made ModelMultipleChoiceField return EmptyQuerySet as empty ↵Stephen Burrows
value
2012-09-26Fixed #17899 -- Rewrote [Ee]-mail to [Ee]mailAdrien Lemaire
2012-09-23Fixed #18982 - Caught TypeError in DateField.cleanAymeric Augustin
Thanks gwahl at fusionbox com.
2012-09-10Document and test 'type' usage in Widget attrsClaude Paroz
Refs #16630.
2012-09-07Fixed #17888 -- no longer silence exceptions inside of check_test. Thanks to ↵Alex Gaynor
brutasse for the patch.
2012-09-07[py3k] Silence many warnings while running the tests.Alex Gaynor
2012-08-18Fixed #18779 -- URLValidator can't validate url with ipv6.Marc Tamlyn
Validation is reasonably 'soft', as for the ipv4. False positives don't matter too much here.
2012-08-12[py3] Refactored __unicode__ to __str__.Aymeric Augustin
* Renamed the __unicode__ methods * Applied the python_2_unicode_compatible decorator * Removed the StrAndUnicode mix-in that is superseded by python_2_unicode_compatible * Kept the __unicode__ methods in classes that specifically test it under Python 2
2012-08-11[py3] Various minor syntax fixes in the test suiteClaude Paroz
2012-08-07[py3] Ported django.utils.encoding.Aymeric Augustin
* Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
2012-08-04Fixed #5524 -- Do not remove cleaned_data when a form fails validationClaude Paroz
cleaned_data is no longer deleted when form validation fails but only contains the data that did validate. Thanks to the various contributors to this patch (see ticket).
2012-07-22[py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin
2012-07-22[py3] Replaced basestring by six.string_types.Aymeric Augustin
2012-07-22[py3] Fixed remaining Python 3 syntax errors.Aymeric Augustin
django.utils.unittest.* weren't touched -- they're only imported on Python 2.6.
2012-06-19Removed unneeded u prefixesClaude Paroz
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-06-03Changed FilePathField tests to use it's own directory with test files.Honza Kral
In previous version it used /django/forms/ which was fragile - for some users .pyc files were not generated and this tests failed.
2012-06-03Unittest2 style assertTrue instead of assert_Honza Kral
2012-06-03Fixed incorrect assert in test_filepathfield_foldersHonza Kral
2012-05-31Fixed #18409 -- Made RegexField work with unicode characters.Julien Phalip
2012-05-19Marked bytestrings with b prefix. Refs #18269Claude Paroz
This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
2012-05-03Used catch_warnings instead of save/restore methods. Refs #17049.Claude Paroz
2012-04-29Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz
Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
2012-04-29Fixed #17976 -- Made forms.BooleanField pickleable.Aymeric Augustin
This was a regression in Django 1.4. Thanks bronger for the report and claudep for the patch.
2012-04-28Removed a svn-specific hack from a test.Aymeric Augustin
2012-04-26Removed unneeded deprecation warning silencing in test suite.Claude Paroz
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17940 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-22Ignore .svn directories in the folders test from [17925]. This is what ↵Alex Gaynor
happens when you use git-svn. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17926 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-22Fixed #5893 -- Added a flag to FilePathField to allow listing folders, in ↵Alex Gaynor
addition to regular files. Thank you to Brian Rosner, for encouraging me to first contribute to Django 4 years ago. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17925 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-31Removed some more useless code related to the verify_exists removal.Claude Paroz
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17856 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-31Removed deprecated URLField.verify_exists.Aymeric Augustin
The deprecation schedule was slightly accelerated because of possible security ramifications. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17847 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-31Fixed #17965 -- Definitely dropped support for Python 2.5. Thanks jonash for ↵Claude Paroz
the initial patch and Aymeric Augustin for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17834 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-30Use the class decorator syntax available in Python >= 2.6. Refs #17965.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17829 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-30Removed with_statement imports, useless in Python >= 2.6. Refs #17965. ↵Claude Paroz
Thanks jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-04Fixed #17542 -- Gracefully handle errors when checking if the values of a ↵Jannis Leidel
SelectDateWidget has changed if it's not required. Thanks, pigletto. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17436 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-04Fixed #14184 -- Enabled running the validators in MultiValueFields. Thanks, ↵Jannis Leidel
paulcollins. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17430 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-31Fixed #16921 -- Added assertHTMLEqual and assertHTMLNotEqual assertions, and ↵Carl Meyer
converted Django tests to use them where appropriate. Thanks Greg Müllegger. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17414 bcc190cf-cafb-0310-a4f2-bffc1f526a37