summaryrefslogtreecommitdiff
path: root/tests/regressiontests/forms
AgeCommit message (Collapse)Author
2008-06-27Fixed #7559 -- Updated newforms unit tests to reflect the fact that ↵Adrian Holovaty
http://www.jfoiwjfoi23jfoijoaijfoiwjofiwjefewl.com is no longer a valid domain name git-svn-id: http://code.djangoproject.com/svn/django/trunk@7775 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-18Fixed #4860: added 'for' attributes to labels in newforms widgets. Thanks to ↵Jacob Kaplan-Moss
Ivan Sagalaev and batiste@dosimple.ch for the patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7693 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-16Fixed #7456 -- Removed check of exact IndexError exception text in a unit ↵Adrian Holovaty
test, for Jython compatibility. Thanks, leosoto git-svn-id: http://code.djangoproject.com/svn/django/trunk@7646 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-24Fixed #6868 -- Fixed test results for Windows systems. Thanks, Ned Batchelder.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7355 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-20Fixed #5917 -- More error robustness in date parsing in SelectDateWidget, plusMalcolm Tredinnick
keep the original date selected on redisplay, even if it was bogus (e.g. 31 Feb). Patch from SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7337 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-19Fixed #5894: added FilePathField to newforms. Thanks, Alex Gaynor.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7323 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-19Replaced dict reprs in tests with explicit looks at each key. This should ↵Jacob Kaplan-Moss
fix many spurious test failures on other VMs (first noticed on Jython). git-svn-id: http://code.djangoproject.com/svn/django/trunk@7322 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-18Fixed #6230: Fixed the addition of id values to the select widgets inMalcolm Tredinnick
SelectDateWidget. Thanks, Matt McClanahan. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7291 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-17Fixed #6302. FileField no longer requires a value if one already exists. ↵Joseph Kocherhans
Thanks Brian Rosner and Øyvind Saltvik. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7021 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-02Fixed #6291 -- Fixed error in CASocialInsuranceNumberField documentation and ↵Adrian Holovaty
error message. Thanks, jeff+django@ivany.org and arien git-svn-id: http://code.djangoproject.com/svn/django/trunk@6985 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-19Fixed #5670 -- Changed the validation of the UK postcode widget to allow for ↵Malcolm Tredinnick
easier input. Normalisation still returns the same things as previously. Patch from scott@staplefish.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-17Fixed #5871 -- Factored out the validation errors in localflavor form ↵Malcolm Tredinnick
fields. Brings them into line with the standard newforms fields. Patch from Jan Rademaker. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6926 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-02Fixed #3961 -- Added South African localflavor. Thanks, Russell Cloran.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6843 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-29Fixed #6014 -- More robust error handling when validating decimal fields.Malcolm Tredinnick
Thanks, pigletto. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6746 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-29Fixed #5959 -- Fixed handling of False values in hidden boolean fields. Thanks,Malcolm Tredinnick
SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6745 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-29Fixed #5939 -- Added normalization for New Brunswick in the Canadian provinces.Malcolm Tredinnick
Thanks, rajesh.dhawan@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-28Fixed #5730: Conditionally escape widget contents in newforms to avoidMalcolm Tredinnick
inadvertent double-escaping. This still isn't perfect behaviour (since it's unaware of the current context's auto-escaping setting), but that's a larger problem that needs fixing and this change at least makes the existing behaviour consistent. Patch from SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6722 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-26Fixed #5993 -- Made `RadioSelect` easier to subclass by giving it a default ↵Gary Wilson Jr
`renderer` as a class attribute. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6717 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-18Fixed #5975 -- Gave `ModelChoiceField` and `ModelMultipleChoiceField` ↵Gary Wilson Jr
ability to specify custom error messages. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6694 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-14Implemented auto-escaping of variable output in templates. Fully ↵Malcolm Tredinnick
controllable by template authors and it's possible to write filters and templates that simulataneously work in both auto-escaped and non-auto-escaped environments if you need to. Fixed #2359 See documentation in templates.txt and templates_python.txt for how everything works. Backwards incompatible if you're inserting raw HTML output via template variables. Based on an original design from Simon Willison and with debugging help from Michael Radziej. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6671 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-04Fixed a Python 2.3 problem.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6644 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-28Fixed #3457 -- Allow overridding of error messages for newforms Fields.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6625 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-27Removed an "XFAIL" marker that was accidentally hanging around since theMalcolm Tredinnick
unicode branch days. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6619 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-22Changed field to "def_date" from "date" in new tests from [6568] so we can ↵Matt Boersma
run the test suite against Oracle again. Refs #4140. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6595 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-22Fixed #5794 -- Be more robust when rendering a DateTimeInput widget. Thanks,Malcolm Tredinnick
MikeH. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6594 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21Changed the default form presentation of datetime values to not include theMalcolm Tredinnick
fractional second values (they usually aren't going to be needed). Based on patches from yi.codeplayer@gmail.com, andrews and Wiliam Alves de Souza. Fixed #4428, #4487 git-svn-id: http://code.djangoproject.com/svn/django/trunk@6578 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-20Fixed #899 -- Use model field default values as formfield initial values inMalcolm Tredinnick
form_for_model(). Patch from David Danier and PhiR. Thanks. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6568 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-20Changed newforms.CheckboxInput widget to return False as its value when notMalcolm Tredinnick
include in the form (since HTML form submission doesn't send unselected check boxes). Patch from SmileyChris. Refs #5104. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6563 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-20Fixed #5200 -- Added some more functionality to the Polish localflavor. Thanks,Malcolm Tredinnick
Slawek Mikula. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6556 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-20Fixed #4036 -- Added Spanish localflavor. Thanks, ricardojbarrios@gmail.com andMalcolm Tredinnick
oggie_rob. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6555 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-20Removed empty tests/regressiontests/forms/localflavor.py file left over ↵Jacob Kaplan-Moss
after [6379] git-svn-id: http://code.djangoproject.com/svn/django/trunk@6380 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-19Fixed #5546: split form unit tests into manageable chunks. This isn't a ↵Jacob Kaplan-Moss
perfect fix since the chunks aren't yet autodiscovered, but that shouldn't prevent checking this in. Thanks, Leo Soto. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-16Fixed #4067 -- Fixed validation of IPAddressFields in newforms. Thanks to ↵Malcolm Tredinnick
neils and the team in the Copenhagen sprint group. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6357 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-16Fixed #4975 -- Allow the default label suffix character to be configured. ↵Malcolm Tredinnick
Thanks, Vincent Foley. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6352 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Fixed #5355 -- Fixed data cleaning for DecimalField.Malcolm Tredinnick
In passing, fixed a problem with cleaning in IntegerField. Includes tests from PhiR. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6282 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Fixed #5487 -- Added deepcopying ability to lazy() objects, along with a ↵Malcolm Tredinnick
test to demonstrate why the previous code failed. Debugging and patch from John Buchanan. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Fixed #5387 -- Added is_multipart method to forms. Original patch from Petr ↵Malcolm Tredinnick
Marhhoun. Tests and documentation from Murkt. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6273 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Fixed #4415 -- Added formfield method to PositiveIntegerField, so that those ↵Russell Keith-Magee
fields get validated correctly. Thanks, Oggie Rob. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6252 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #4542: added a generic localflavor DateField. Thanks, Nick Lane.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6208 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #3988: added a localflavor for our friends to the north (i.e. Canada). ↵Jacob Kaplan-Moss
THanks, Tyler Tarabula. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6202 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #4964 -- Added Brazilian state field to localflavors. Thanks, William ↵Malcolm Tredinnick
Alves de Souza. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fiex #5331 -- Modified newforms URLField to prepend http:// if no protocol ↵Russell Keith-Magee
is specified by the user. Thanks, SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6173 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #3489 -- Added proper deepcopying to form fields so that widget ↵Malcolm Tredinnick
instances get copied as well. Patch from Jonathan Buchanan and insin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #3421 -- Added IP and localhost validation to newforms URLField. ↵Russell Keith-Magee
Thanks, SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6152 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Moved `flatatt` function tests to the util test module.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6151 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Refs #5370 -- Added tests for ValidationError messages.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6150 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #5431 -- Added Argentinean localflavor. Thanks, Ramiro Morales.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13Fixed #4752 -- Make default ErrorList customisable in newforms display. ↵Malcolm Tredinnick
Based on a patch from michal@logix.cz and SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6142 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13Fixed #5403 -- Added Dutch localflavor. Thanks, Jan Rademaker.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6139 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11Removed duplicate form tests added in the [changeset:5609 unicode merge].Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6090 bcc190cf-cafb-0310-a4f2-bffc1f526a37