summaryrefslogtreecommitdiff
path: root/tests/regressiontests/forms
AgeCommit message (Collapse)Author
2007-09-08Fixed #5232 -- Fixed the validation of `DecimalField` so that the negative ↵Gary Wilson Jr
sign is not counted as a digit. Thanks, Andrew Durdin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6067 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-19Fixed #5200 -- Added Polish localflavor. Thanks, Slawek Mikula.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5936 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-12Fixed #4622 -- Fixed SelectDateWidget to work correctly when used as a ↵Malcolm Tredinnick
hidden input field. Thanks, Bill Fenner. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5859 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-06Fixed #3297 -- Implemented FileField and ImageField for newforms. Thanks to ↵Russell Keith-Magee
the many users that contributed to and tested this patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5819 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-01Fixed #4228 -- Removed hardcoding of `RadioFieldRenderer` in the ↵Gary Wilson Jr
`RadioSelect` Widget so that the display of `RadioSelect`s can be more easily customized. `BoundField.__unicode__` also no longer special cases `RadioSelect` since `RadioSelect.render()` now returns a string like every other Widget. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5782 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-19Fixed #3925 -- Added Slovak localflavor items. Thanks, Martin Kosír.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5724 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-13Fixed #4469 -- Added slightly more informative error messages to max- andMalcolm Tredinnick
min-length newform validation. Based on a patch from A. Murat Eren. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5686 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-13Fixed #4807 -- Fixed a couple of corner cases in decimal form input validation.Malcolm Tredinnick
Based on a suggestion from Chriss Moffit. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5680 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-12Fixed #4808 -- Added Chilean regions in localflavor. Thanks, Marijn Vriens ↵Russell Keith-Magee
<marijn@metronomo.cl>. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5663 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-04Merged Unicode branch into trunk (r4952:5608). This should be fullyMalcolm Tredinnick
backwards compatible for all practical purposes. Fixed #2391, #2489, #2996, #3322, #3344, #3370, #3406, #3432, #3454, #3492, #3582, #3690, #3878, #3891, #3937, #4039, #4141, #4227, #4286, #4291, #4300, #4452, #4702 git-svn-id: http://code.djangoproject.com/svn/django/trunk@5609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-23Fixed #4527 -- Changed the way errors are displayed in Form.as_p() to avoidMalcolm Tredinnick
invalid XHTML constructs. Based on a patch from SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5518 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-23Fixed #4630 -- Fixed some validation problems with SplitDateTimeField. ThanksMalcolm Tredinnick
glin@seznam.cz and SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5515 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-26Added a new form test that I forgot to commit in [5348]. Refs #3718.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5354 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-21Fixed #2365, #3324 -- Renamed FloatField to DecimalField and changed the codeMalcolm Tredinnick
to return Decimal instances in Python for this field. Backwards incompatible change. Added a real FloatField (stores floats in the database) and support for FloatField and DecimalField in newforms (analogous to IntegerField). Included decimal.py module (as django.utils._decimal) from Python 2.4. This is license compatible with Django and included for Python 2.3 compatibility only. Large portions of this work are based on patches from Andy Durdin and Jorge Gajon. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5302 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-19Fixed #4316 -- Added docstring and tests for django.newforms.utils.flatatt().Malcolm Tredinnick
Thanks, Gary Wilson. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5291 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14Changed the fix from [5231] so that the backwards-incompatibility is made moreMalcolm Tredinnick
obvious and everything still has nice names. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14Renamed form-specific cleaning methods to be do_clean_*, rather than clean_*.Malcolm Tredinnick
This avoids a name clash that would occur when you had a form field called "data" (because clean_data is already a dictionary on the Form class). Backwards incompatible change. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5231 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14Added unit tests and docs for the newforms case in which the form's data ↵Adrian Holovaty
doesn't include a value for a nonrequired field git-svn-id: http://code.djangoproject.com/svn/django/trunk@5218 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12Fixed #4018 -- Added code to allow callables as initial data in newforms. ↵Russell Keith-Magee
Thanks for the patch, David Danier. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5209 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12Removed unit tests added in [5196]; didn't notice the tests in ↵Russell Keith-Magee
modeltests/model_forms. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5201 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12Added unit tests for form_for_model and form_for_instance.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5196 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-01Fixed #3946 -- Added Swiss localflavor. Thanks, charly.wilhelm@gmail.com.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5132 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-27Fixed #3698 -- Modified newforms labels to only add a colon if the label ↵Russell Keith-Magee
text doesn't end with punctuation. Thanks, SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5112 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-27Added tests for Brazilian CRPF field that were accidentally omitted in [5089].Malcolm Tredinnick
Refs #3957. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5108 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-26Fixed inconsistent period usage in localflavor.br error messages from [5089]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5099 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-26Fixed #3957, #3945 -- Added CPF and CNPJ (some Brazilian identity numbers)Malcolm Tredinnick
fields to the Brazilian localflavor. Thanks, onaiort@gmail.com and danielvaz@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5089 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-26Fixed #3787, #3788 -- Corrected check for IndexError on MultiValueField, and ↵Russell Keith-Magee
fixed the value_from_datadict method for MultiWidgets to handle Multiwidgets containing Multiwidgets. Also added a testcase walking through the use of MultiWidget/MultiValueField. Thanks to Max Derkachev for reporting these issues and providing fixes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5088 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-26Fixed #4122 -- Added Chilean localflavor. Thanks, marijn@metronomo.cl.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5087 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-26Fixed #4143 -- Added Icelandic localflavor. Note that we use the is_/ directoryMalcolm Tredinnick
name because "is" is a reserved word in Python. Patch from django@einaregilsson.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5080 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-24Fixed #3870, Refs #3787 -- Fixed handling of widget attributes on ↵Russell Keith-Magee
RadioSelect and MultiWidget. In particular, handling of the id attribute has been fixed. Thanks to Gary Wilson and Max Derkachev. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5065 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-17Fixed #3866 -- Added Italian Social Security and VAT input fields to ↵Russell Keith-Magee
localflavor. Thanks, Massimiliano Ravelli. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5018 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-10Fixed #3983 -- Fixed misspelled Delaware in localflavor unit testsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4993 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-09Fixed #3929 -- Newforms Textarea widget now always includes 'rows' and ↵Adrian Holovaty
'cols' attributes, even if you don't pass them in, for HTML correctness. Thanks, and welcome back, Luke Plant git-svn-id: http://code.djangoproject.com/svn/django/trunk@4961 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-08Fixed #3876 -- Added Australian local flavour. Thanks, Matthew Flanagan.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4955 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-08Backwards-incompatible change -- Renamed localflavor.usa to localflavor.us ↵Russell Keith-Magee
to match naming of other flavors. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4954 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-06Fixed inconsistent indentation in localflavor/de/forms.py from [4922]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4939 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-05Fixed #3931 -- Corrected a typo noticed by Jorge Gajon.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4930 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-04Removed an umlaut, since our i18n support (creating PO files) doesn't workMalcolm Tredinnick
smoothly with Python unicode strings at the moment. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4926 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-04Fixed #3597 -- Fixed unicode encoding problem in form rendering. Thanks,Malcolm Tredinnick
Georgi Stanojevski and Ville Säävuori. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4924 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-04Fixed #3919 -- Added German identity card number validation to GermanMalcolm Tredinnick
localflavor. Thanks, Jannis Leidel. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4922 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-04Fixed #3897 -- Added German localflavor. Thanks, Jannis Leidel.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4920 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-04Moved smart_unicode and StrAndUnicode to django.utils.encoding. They are usefulMalcolm Tredinnick
outside of newforms. This is backwards compatible as far as smart_unicode goes (since newforms.util still imports it). All imports of smart_unicode and StrAndUnicode have also been updated. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4918 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-03Negligible formatting changes to some recent commitsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4917 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-03Fixed #3890 -- Added USSocialSecurityNumberField. Thanks James Bennet.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-03Fixed #3882 -- Changed error messages in Brazilian localflavor to be inMalcolm Tredinnick
English. Thanks, Wiliam Alves de Souza. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4908 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-02Fixed #3600 -- Made smart_unicode respect deferred evaluation in the caseMalcolm Tredinnick
of strings translated with gettext_lazy and friends. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4904 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-01Fixed #3810 -- In newforms, copy attribute dictionaries before modifying themMalcolm Tredinnick
in place. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4894 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-01Moved localflavor form tests into their own file.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4887 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-31Fixed #3866 -- Added tests for localflavor/it. Thanks flavio.curella@gmail.comMalcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4876 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-31Fixed #3882 -- Added Brazilian localflavor. Thanks, Wiliam Alves de Souza.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4874 bcc190cf-cafb-0310-a4f2-bffc1f526a37