summaryrefslogtreecommitdiff
path: root/tests/regressiontests/forms
AgeCommit message (Collapse)Author
2010-12-19[1.2.X] Fixed a Python 2.5 syntax error. Backport of [14983].Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14984 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Fixed #14871, #14872 -- ZAIDField didn't handle alll EMPTY_VALUES ↵Alex Gaynor
correctly and ZAPostCodeField didn't respect *args or **kwargs (such as required=False). Also converted South African localflavor doctests into unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14956]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14980 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted Uruguayan localflavor doctests into unittests. We have ↵Alex Gaynor
alwyas been at war with doctests. Thanks to Idan Gazit. Backport of [14955]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14979 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted United States localflavor doctests into unittests. We ↵Alex Gaynor
have always been at war with doctests. Thanks to Idan Gazit. Backport of [14954]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14978 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted United Kingdom localflavor doctests into unittests. We ↵Alex Gaynor
have always been at war with doctests. Thanks to Idan Gazit. Backport of [14953]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14977 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted Slovak localflavor doctests into unitttests. We have ↵Alex Gaynor
always been at war with doctests. Thanks to Idan Gazit. Backport of [14952]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Fixed #14864, #14864 -- ROCIFField didn't accept values starting ↵Alex Gaynor
with RO, as it was supposed to, and ROCNPField, ROIBANField, and ROPhoneNumberField didn't handle all EMPTY_VALUES correctly. Also converted Romanian localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14951]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14975 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted Portuguese localflavor doctests into unittests. We have ↵Alex Gaynor
always been at war with doctests. Thanks to Idan Gazit. Backport of [14950]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14974 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Fixed #14860 -- PLPESELField, PLNIPField, and PLREGONField didn't ↵Alex Gaynor
handle all EMPTY_VALUES correctly. Also converted teh Polish localflavor doctests into unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14949]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14973 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted Dutch localflavor doctests to unittests. We have always ↵Alex Gaynor
been at war with doctests. Thanks to Idan Gazit. Backport of [14948]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14972 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted Kuwaiti localflavor doctests to unittests. We have always ↵Alex Gaynor
been at war with doctests. Thanks to Idan Gazit. Backport of [14947]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14971 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted Japanese localflavor doctests to unittests. We have ↵Alex Gaynor
always been at war with doctests. Thanks to Idan Gazit. Backport of [14946]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14970 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Fixed #14859 -- ITSocialSecurityNumberField and ITVatNumberField ↵Alex Gaynor
didn't handle all EMPTY_VALUES gracefully. Also converted the Italias localflavor doctests into unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14945]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14969 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted Icelandic localflavor doctests to unittests. We have ↵Alex Gaynor
always been at war with doctests. Thanks to Idan Gazit. Backport of [14944]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14968 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted Irish localflavor doctests to unittests. We have always ↵Alex Gaynor
been at war with doctests. Thanks to Idan Gazit. Backport of [14942]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14967 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted Indonesian localflavor doctests to unittests. We have ↵Alex Gaynor
always been a war with doctests. Thanks to Idan Gazit. Backport of [14941]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14966 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted generic localflavor doctests to unittests. We have always ↵Alex Gaynor
been at war with doctests. Thanks to Idan Gazit. Backport of [14940]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14965 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted French localflavor doctests into unittests. We have ↵Alex Gaynor
always been at war with doctests. Thanks to Idan Gazit. Backport of [14939]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14964 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted Finnish localflavor doctests to unittests. We have always ↵Alex Gaynor
been at war with doctests. Thanks to Idan Gazit. Backport of [14938]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14963 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted Spanish localflavor doctests to unittests. We have always ↵Alex Gaynor
been at war with doctests. Thanks to Idan Gazit. Backport of [14937]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14962 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted Chilean localflavor doctests to unittests. We have always ↵Alex Gaynor
been at war with doctests. Thanks to Idan Gazit. Backport of [14936]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14961 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted Swiss localflavor doctests to unittests. Thanks to Idan ↵Alex Gaynor
Gazit for the patch. Backport of [14935]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14960 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted Canadian localflavor doctests to unittests. We have ↵Alex Gaynor
always been at war with doctests. Thanks to Idan Gazit. Backport of [14934]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14959 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted the Brazillian localflavor doctests to unittests. We have ↵Alex Gaynor
always been at war with doctests. Thanks to Idan Gazit. Backport of [14933]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14958 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18[1.2.X] Converted Australian localfavor doctests into unittests. We have ↵Alex Gaynor
always been at war with doctests. Thanks to Idan Gazit for the patch. Backport of [14931], git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14957 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-13[1.2.X] Fixed #14158 -- Fixed SelectMultiple._has_changed to not assume same ↵Jannis Leidel
order of data anymore. Thanks, akaariai and dmoisset. Backport from trunk (r14887). git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14907 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-12[1.2.X] Fixed #14499 -- ATSocialSecurityNumberField now responds to all ↵Alex Gaynor
EMPTY_VALUES correctly. Also converted Austrian localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit for the patch. Backport of [14873]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14875 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-12[1.2.X] Converted the Argentina localflavor doctests to unittests. We have ↵Alex Gaynor
always been at war with doctests. Thanks to Idan Gazit for the patch. Backport of [14872]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14874 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-02[1.2.X] Fixed broken German localflavor test introduced in r14627. Thanks ↵Jannis Leidel
for Rubber Ducking, Alex and Carl. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14775 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-21Fixes #13804 -- URLField validation failure for a url containing '://' on ↵Chris Beaven
the path and no scheme. Backport of r14657 git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14658 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-20[1.2.X] Fixed poorly-constructed test from r14612. Thanks to Alex Gaynor for ↵Carl Meyer
the eagle eyes. Backport of r14635 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14636 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-19Corrected some issues with the backport from [14627].Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14634 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-19[1.2.X] Began converting localflavor doctests into unittests, starting with ↵Alex Gaynor
the German ones. Also introduced a new base class to facilitate ease of testing form fields. We have always been at war with doctests. Thanks to Idan Gazit for the patch. Backport of [14626]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14627 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-18[1.2.X] Fixed #14234 -- Re-validating a model instance added via ModelForm ↵Carl Meyer
no longer throws spurious PK uniqueness errors. Thanks to David Reynolds and Jeremy Dunck. Also moved Model._adding to Model._state.adding to reduce instance namespace footprint. Backport of r14612. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14615 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-16[1.2.X] Migrated forms (minus localflavor) doctests. A huge thanks to Daniel ↵Russell Keith-Magee
Lindsley for the patch. Backport of r14570 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14575 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-10[1.2.X] Fixed #11907 -- EmailField now runs strip() on its input. This means ↵Chris Beaven
mistakenly including leading or trailing spaces will not cause a validation error, and clean() will remove those spaces. Thanks, krisneuharth and djansoft. Backport of [13997]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14124 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-11[1.2.X] Fixed #13390 -- `SplitDateTimeWidget` now recognizes when it's no ↵Justin Bronn
longer required. Thanks vaxXxa for bug report and patch. Backport of r13753 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13754 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-10[1.2.X] Fixed #14247 - 'forms' test failure in 1.2.XLuke Plant
Thanks to ramiro/pmclanaham for the report and analysis. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13707 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-24[1.2.X] Fixed #14159 -- Corrected more potential uses of relative paths in ↵Russell Keith-Magee
tests. Thanks to Alex Gaynor for the patch. Backport of r13636 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13637 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-14[1.2.X] Fixed #13679, #13231, #7287 -- Ensured that models that have ↵Russell Keith-Magee
ForeignKeys/ManyToManyField can use a a callable default that returns a model instance/queryset. #13679 was a regression in behavior; the other two tickets are pleasant side effects. Thanks to 3point2 for the report. Backport of r13577 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13578 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-05[1.2.X] Fixed #13621 -- Corrected the handling of input formats on date/time ↵Russell Keith-Magee
form fields. Thanks to bufke for the report, zerok and jacmkno for their work on the patch, and Karen, Jannis and Alex for feedback. Backport of r13484 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13486 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-05[1.2.X] Fixed #13732 -- Fixed minor typo in docstring. Thanks to schinckel ↵Russell Keith-Magee
for the report. Backport of r13483 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13485 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-23Fixed #13592 -- Make sure the SelectDateWidget works with dates before 1900 ↵Jannis Leidel
when localization is enabled. Thanks for the report and patch, magnus. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13301 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-21Fixed #13560 -- Fixed localization of widgets.Jannis Leidel
Particularly this fixes the SplitDateTimeField and the AdminDateWidget by localizating the widget's value in its render method instead of the form field. Thanks to David Danier for the report and Russell for help with the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-12Fixed #13524 -- Added backwards compatibility and feature notes regarding ↵Russell Keith-Magee
admin inlines and formsets. Thanks to Ramiro Morales and Gabriel Hurley. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-04Fixed #12164 -- Removed the Python 2.3 compatibility imports and ↵Russell Keith-Magee
workarounds. Thanks to timo and claudep for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-28Fixed #12986 -- Ensured that SelectDateField repopulates correctly when ↵Russell Keith-Magee
USE_L10N=True and locale has a default date input format other than %Y-%m-%d. Thanks to wim@go2people.nl for the report, and walteralini for his draft patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13041 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-21Fixed #13374 -- Modified a test so that it can pass under PyPy. This is a ↵Russell Keith-Magee
reimplementation of part of r12998, reverted in r13008. Thanks to Alex Gaynor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13010 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-20Revert part of r12998 that prevents the forms doctests in tests.py from running.Karen Tracey
Adjust the fr.py localflavor tests to account for r13007. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13008 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-19Fixed #13374 -- Corrected some more minor issues causing problems for PyPy. ↵Russell Keith-Magee
Thanks to Alex Gaynor for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12998 bcc190cf-cafb-0310-a4f2-bffc1f526a37