summaryrefslogtreecommitdiff
path: root/tests/regressiontests/forms
AgeCommit message (Collapse)Author
2011-06-12Fixed #15856 -- Added Macedonian localflavor. Many thanks to vasiliyeah.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16385 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-11Fixed #811 -- Added support for IPv6 to forms and model fields. Many thanks ↵Jannis Leidel
to Erik Romijn. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16366 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-10More removal of poorly legible constructs to workaround Python 2.4 shortcomings.Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16363 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-10Fixed #16196 - Redundant or incorrect code in testsLuke Plant
Thanks to intelliyole and melinath for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16354 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-09Fixed #9459: forms.HiddenInput and DateTime field loses microseconds. Thanks ↵Andrew Godwin
to mt. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-31Fixed #15805 - assertFieldOutput should not use assertRaisesRegexpLuke Plant
Thanks to julien for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16303 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-07Fixed #8527 -- Made CAPostalCodeField more forgiving of the input format. ↵Jannis Leidel
Thanks to Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16175 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-06Added missing future imports missed in r16167.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16169 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-06Make use of new translation and settings context manager in the tests.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16167 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-03Fixed #13770 -- Extended BooleanField form field to also clean `u'false'` to ↵Jannis Leidel
`False`. Thanks, jordanb and Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16148 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-03Fixed #13729 -- Renamed UK localflavor to GB to correctly follow ISO 3166. ↵Jannis Leidel
Thanks, Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16147 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-03Fixed #12595 -- Fixed bad arguments handling in localflavor form fields.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16146 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-01Fixed #5714 -- Strip whitespaces around date and time form field values ↵Jannis Leidel
before converting it to a native type. Thanks to SmileyChris for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16137 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-30Fixed #15640 -- Added new initial digit in Spain phone numbers to ↵Jannis Leidel
localflavor's ESPhoneNumberField form field. Thanks, Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16132 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-28Fixed #15713 -- Added a form field for validating Polish National ID Card ↵Jannis Leidel
numbers. Thanks, xtrqt. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16116 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-22Fixed #13584 -- Optionally allow empty files with django.forms.FileField. ↵Chris Beaven
Thanks for the patch erickr and closedbracket. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16090 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-22Fixed #15705 -- Added Croatian (hr) localflavor. Thanks, Zlatko Mašek and ↵Jannis Leidel
Julien Phalip. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16077 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-22Fixed #15013 -- Added Russian (ru) localflavor package. Thanks, blackraven ↵Jannis Leidel
and Julien Phalip. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16076 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-22Fixed #12379 -- Added Chinese (cn) localflavor package. Thanks, Xia Kai, ↵Jannis Leidel
Daniel Duan, DaNmarner and Łukasz Rekucki. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16070 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-02Updates to the test suite to allow for newly deprecated and removed featuresRussell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15990 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-28Removed a bunch more Python 2.4 workarounds now that we don't support that ↵Adrian Holovaty
version. Refs #15702 -- thanks to jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-17Fixed #15623 -- Corrected province codes for Canadian localflavor. Thanks to ↵Russell Keith-Magee
shelldweller for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15864 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-03Updated test assertions that have been deprecated by the move to unittest2. ↵Russell Keith-Magee
In summary, this means: assert_ -> assertTrue assertEquals -> assertEqual failUnless -> assertTrue For full details, see http://www.voidspace.org.uk/python/articles/unittest2.shtml#deprecations git-svn-id: http://code.djangoproject.com/svn/django/trunk@15728 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-21Fixed #15349 - Bound FormSet produces bound empty_formLuke Plant
Thanks to hidde-jan for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15614 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-16Moved the test added in r15504 to a different case where it doesn't actually ↵Jannis Leidel
verify the existence of the URL by calling urlopen but only validates it. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15551 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-12Fixed #14941 -- Stop raising ValidationError in form fields that use the ↵Jannis Leidel
URLValidator and get a IDN domain passed. Thanks, Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-12Fixed #12988 -- Extended regular expression of the URLValidator to fully ↵Jannis Leidel
support IDN-URLs, especially the long TLDs. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15502 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-12Fixed #14955 -- Made the URLValidator use a HEAD request when verifying a ↵Jannis Leidel
URL. Thanks, Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15500 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-09Fixed #15182 - Fixed a security issue with ClearableFileInput. Disclosure ↵Carl Meyer
and new release forthcoming. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15470 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-08Fixed #15175 -- Ensured that Chliean RUT checksum letters aren't case ↵Russell Keith-Magee
sensitive. Thanks to rvimer for the report, and to ersame for the patch. H: Enter commit message. Lines beginning with 'HG:' are removed. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-05Modified wrong expected ClearableFileInput rendering output in a couple of ↵Ramiro Morales
additional tests after fix introduced in [15426]. Refs #14984. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15432 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-05Fixed #15226 - Made SelectDateWidget render the label tag associated with ↵Ramiro Morales
the correct dropdown sub-widget when USE_L10N is active and non-English locale is in use. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15427 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-04Fixed #13968 -- Fixed SelectDateWidget processing of an invalid date input ↵Ramiro Morales
value when USE_L10N is on, for consistency with its behavior when USE_L10N=False (now the form field reports the validation error in both cases). Thanks mitar for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15416 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-13Fixed #13631 -- Made sure that max_length and min_length are retained as ↵Russell Keith-Magee
attributes on form fields. Thanks to mila for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15194 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-08Fixed #12295 -- Issue had already been fixed, but added test. Thanks ↵Andrew Godwin
tomevans222 and dpn. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15158 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-27Fixed #14593 -- change this warning to be a PendingDeprecationWarning. Also ↵Alex Gaynor
converted the Czech localflavor tests to be unittests. We have always been at war with doctests. Thanks to Idan Gazit. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15062 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-26Updated list of US states and tests after r15029 to be sorted correctly.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15058 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-26Converted Swedish localflavor tests from doctests to unittests. Thanks, Idan ↵Jannis Leidel
Gazit! git-svn-id: http://code.djangoproject.com/svn/django/trunk@15057 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-19Fixed #14655 -- Made formsets iterable. This allows a slightly more natural ↵Russell Keith-Magee
iteration API (`for form in formsets`), and allows you to easily override the form rendering order. Thanks to Kent Hauser for the suggestion and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14986 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-19Fixed a Python 2.5 syntax error.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18Fixed #14871, #14872 -- ZAIDField didn't handle alll EMPTY_VALUES correctly ↵Alex Gaynor
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. Fixing ZA localflavor clean() #14872 git-svn-id: http://code.djangoproject.com/svn/django/trunk@14956 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18Converted Uruguayan localflavor doctests into unittests. We have alwyas ↵Alex Gaynor
been at war with doctests. Thanks to Idan Gazit. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14955 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18Converted United States localflavor doctests into unittests. We have always ↵Alex Gaynor
been at war with doctests. Thanks to Idan Gazit. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14954 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18Converted United Kingdom localflavor doctests into unittests. We have ↵Alex Gaynor
always been at war with doctests. Thanks to Idan Gazit. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14953 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18Converted Slovak localflavor doctests into unitttests. We have always been ↵Alex Gaynor
at war with doctests. Thanks to Idan Gazit. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18Fixed #14864, #14864 -- ROCIFField didn't accept values starting with RO, as ↵Alex Gaynor
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. Fixing RO localflavor clean() #14864 git-svn-id: http://code.djangoproject.com/svn/django/trunk@14951 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18Converted Portuguese localflavor doctests into unittests. We have always ↵Alex Gaynor
been at war with doctests. Thanks to Idan Gazit. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14950 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18Fixed #14860 -- PLPESELField, PLNIPField, and PLREGONField didn't handle all ↵Alex Gaynor
EMPTY_VALUES correctly. Also converted teh Polish localflavor doctests into unittests. We have always been at war with doctests. Thanks to Idan Gazit. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14949 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18Converted Dutch localflavor doctests to unittests. We have always been at ↵Alex Gaynor
war with doctests. Thanks to Idan Gazit. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14948 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18Converted Kuwaiti localflavor doctests to unittests. We have always been at ↵Alex Gaynor
war with doctests. Thanks to Idan Gazit. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14947 bcc190cf-cafb-0310-a4f2-bffc1f526a37