summaryrefslogtreecommitdiff
path: root/tests/regressiontests/forms
AgeCommit message (Collapse)Author
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner
2013-02-23Fix #17751: Added stripping of whitespace for ↵Erik Romijn
IPAddressField/GenericIPAddressField
2013-02-23Fixed #19686 -- Added HTML5 number input typeClaude Paroz
Thanks Simon Charette for his help on the patch. Refs #16630.
2013-02-19Added 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-28Added HTML5 url input typeClaude Paroz
Refs #16630.
2013-01-28Added HTML5 email input typeClaude Paroz
Refs #16630.
2013-01-26Fixed #16123 -- Ensured strptime receive proper string typeClaude Paroz
strptime generates an UnicodeEncodeError when using a non-ascii unicode string on Python 2.
2013-01-25Moved has_changed logic from widget to form fieldClaude Paroz
Refs #16612. Thanks Aymeric Augustin for the suggestion.
2013-01-09Fixed #19581 -- ensure unique html ids with CheckboxSelectMultiple widgetsLoic Raucy
ID check is now done the same way as MultipleHiddenInput.
2013-01-03Fixed #19545 -- Make sure media/is_multipart work with empty formsetsSimon Charette
2012-12-31Fixed #19537 -- Made CheckboxInput._has_changed handle 'False' stringClaude Paroz
Thanks dibrovsd@gmail.com for the report.
2012-12-24Don't rely on dictionary ordering in testsIan Clelland
2012-12-08Fixed #19357 -- Allow non-ASCII chars in filesystem pathsClaude Paroz
Thanks kujiu for the report and Aymeric Augustin for the review.
2012-12-06Fixed #18574 -- Make BaseFormSet.is_valid call its underlying forms' is_validAndreas Hug
Thanks Simon Charette for the report and the initial patch.
2012-12-01Fixed #19015 -- Add ISO input formats to all formatsClaude Paroz
2012-11-25Enabled SimpleTestCase to be decorated by override_settingsClaude Paroz
Refs #18417. Also fixed some test case classes which subclassed the wrong parent.
2012-11-05Fixed #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.
2012-10-26Fixed #16820 -- Treated '0' value as True for checkbox inputsClaude Paroz
Thanks Dan Fairs for the report and the initial patch.
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