summaryrefslogtreecommitdiff
path: root/tests/regressiontests/forms
AgeCommit message (Collapse)Author
2007-03-30Fixed #3847 -- Added validation support for Finnish social security numbers.Malcolm Tredinnick
Thanks, karsu. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4868 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-30Fixed #3847 -- Added Finnish localflavor contribution from Ville Säävuori.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-25Fixed #3715 -- Added Japanese package to django.contrib.localflavor. Thanks, ↵Adrian Holovaty
Makoto Tsuyuki git-svn-id: http://code.djangoproject.com/svn/django/trunk@4822 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-25Fixed #3813 -- Added French package to django.contrib.localflavor. Thanks, ↵Adrian Holovaty
Fabrice Aneche git-svn-id: http://code.djangoproject.com/svn/django/trunk@4820 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-06Fixed #3654 -- Fixed test failure from [4665].Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4666 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-21Added newforms USPhoneNumberField in django.contrib.localflavor.usaAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4554 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-21Added small newforms unit testAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4551 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-20Fixed #3490 -- Fixed issue with newforms ChoiceField and generators as ↵Adrian Holovaty
choices. Thanksfor the patch, Chris.Wesseling@cwi.nl git-svn-id: http://code.djangoproject.com/svn/django/trunk@4549 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-20Fixed #2455 -- Added newforms USStateSelect widget in ↵Adrian Holovaty
django.contrib.localflavor.usa git-svn-id: http://code.djangoproject.com/svn/django/trunk@4545 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-19Fixed #3510 -- newforms validation errors are now HTML-escaped for HTML ↵Adrian Holovaty
output. Thanks, scott@staplefish.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@4544 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-19Improved newforms to handle wacky characters in Field help_textAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4543 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15Fixed #3506 -- Changed newforms BoundField.help_text to an empty string if ↵Adrian Holovaty
None. Thanks for the patch, Thomas Steinacher git-svn-id: http://code.djangoproject.com/svn/django/trunk@4528 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15Fixed #3503 -- Added newforms UKPostcodeField in ↵Adrian Holovaty
django.contrib.localflavor.uk. Thanks for the patch, Jonathan Buchanan git-svn-id: http://code.djangoproject.com/svn/django/trunk@4527 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15Implented newforms USStateField in django.contrib.localflavor.usa. Refs #2455Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4525 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15Created django.contrib.localflavor, for country- and culture-specific ↵Adrian Holovaty
functionality. Moved django/newforms/extras/usa.py into there git-svn-id: http://code.djangoproject.com/svn/django/trunk@4524 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15Fixed #3409 -- Added render_value argument to newforms PasswordInput. Thanks ↵Adrian Holovaty
for the patch, scott@staplefish.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@4523 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15Fixed #3314 -- Fixed a bug in newforms smart_unicode. Thanks for the patch, neshAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4522 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15Fixed #3456 -- Made it easier/more intuitive to render newforms help_text in ↵Adrian Holovaty
templates git-svn-id: http://code.djangoproject.com/svn/django/trunk@4521 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15Fixed #1466 -- Added newforms USZipCodeFieldAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4519 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-14Implemented subclassing Forms in newformsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4506 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-13Fixed #3489 -- Changed newforms to use copy.copy() in constructing ↵Adrian Holovaty
self.fields, so changes to self.fields in a given form instance do not affect other instances git-svn-id: http://code.djangoproject.com/svn/django/trunk@4504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-09Fixed #3449 -- fixed regression test results so that they all pass now. ThanksMalcolm Tredinnick
Brian Harring. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4466 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-28Fixed #3255 -- Added help_text argument to newforms Field class.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4440 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-27newforms: Added a unit test that tests dynamic field addition with base ↵Adrian Holovaty
fields defined on the class git-svn-id: http://code.djangoproject.com/svn/django/trunk@4438 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-27Fixed #3334 -- Changed newforms Form class construction so that appending to ↵Adrian Holovaty
(or altering) self.fields affects only the instance, not the class. As a consequence, self.fields is created in Form.__init__(). The form metaclass now creates a variable self.base_fields instead of self.fields. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4437 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-27Fixed #3312 -- CheckboxSelectMultiple no longer uses duplicate ID attributes ↵Adrian Holovaty
for each checkbox git-svn-id: http://code.djangoproject.com/svn/django/trunk@4436 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-27Fixed #3300 -- Changed newforms Select widget to collapse 'choices' into a ↵Adrian Holovaty
list if it's an iterable, so the iterable can be iterated over multiple times. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4435 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-24newforms: Implemented NullBooleanField and NullBooleanSelectAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-23newforms: Added MultiValueField, SplitDateTimeField, MultiWidget, ↵Adrian Holovaty
SplitDateTimeWidget git-svn-id: http://code.djangoproject.com/svn/django/trunk@4403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-21Fixed #3196 -- Fixed inconsistency in setting choices on ChoiceFields ↵Adrian Holovaty
dynamically git-svn-id: http://code.djangoproject.com/svn/django/trunk@4379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-21newforms: Fixed confusing behavior when setting choices for ChoiceFields and ↵Adrian Holovaty
their corresponding Widgets. Now, a Widget uses the choices from its ChoiceField regardless of whether the Widget has its own choices. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-20newforms: Added attrs optional argument to BoundForm.label_tag()Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4369 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-13Fixed #3281 -- newforms: URLField now works properly with required=False and ↵Adrian Holovaty
verify_exists=True together. Thanks, zendak git-svn-id: http://code.djangoproject.com/svn/django/trunk@4313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-13Fixed #3293 -- newforms: Changed IntegerField.clean() to return None if ↵Adrian Holovaty
field is not required and empty. Thanks, Honza Kral git-svn-id: http://code.djangoproject.com/svn/django/trunk@4312 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-13Fixed #3289 -- newforms: Added value_from_datadict method to MultipleHiddenInputAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4311 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-13newforms: Added unit tests for MultipleHiddenInputAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-11newforms: Added unit tests and docs explaining that clean_data will only ↵Adrian Holovaty
ever contain fields of the form, even if extra fields are passed in data git-svn-id: http://code.djangoproject.com/svn/django/trunk@4306 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-10Fixed #3266 -- newforms: Made RadioSelect accept funky characters. Thanks ↵Adrian Holovaty
for reporting, Honza Kral git-svn-id: http://code.djangoproject.com/svn/django/trunk@4304 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-10Fixed #3278 -- newforms: Fixed bug in DeclarativeFieldsMetaclass where it ↵Adrian Holovaty
inadvertently overrode the class' name. Thanks, russblau@imapmail.org git-svn-id: http://code.djangoproject.com/svn/django/trunk@4303 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-09Fixed #3193 -- newforms: Modified as_hidden() to handle MultipleChoiceField ↵Adrian Holovaty
correctly. Thanks for the report, Honza Kral git-svn-id: http://code.djangoproject.com/svn/django/trunk@4298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-09newforms: Added 'initial' parameter to Form, which lets initial data be ↵Adrian Holovaty
specified dynamically git-svn-id: http://code.djangoproject.com/svn/django/trunk@4297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-05newforms: Changed Form.ignore_errors to Form.is_bound, which is more ↵Adrian Holovaty
descriptive and can be helpful to access at runtime git-svn-id: http://code.djangoproject.com/svn/django/trunk@4286 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-04newforms: Changed Form so that clean_data only exists if a Form is valid. ↵Adrian Holovaty
Thanks for the idea, Honza Kral git-svn-id: http://code.djangoproject.com/svn/django/trunk@4284 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-03Fixed problem with SelectDateWidget test caused by 2006/2007 year rollover. ↵Russell Keith-Magee
Thanks, Robert Myers. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-28newforms: Added 'initial' parameter to Field. This allows you to specify ↵Adrian Holovaty
initial data that will be displayed with the form if no data is given. Also added unit tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4249 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-26newforms: Added max_length and min_length optional arguments to RegexField, ↵Adrian Holovaty
EmailField and URLField. Note that the argument order for those three fields has changed git-svn-id: http://code.djangoproject.com/svn/django/trunk@4241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-26newforms: A label can now be the empty string, in which case a label won't ↵Adrian Holovaty
be displayed git-svn-id: http://code.djangoproject.com/svn/django/trunk@4240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-26newforms: Changed Form.as_table() to display errors in same <td> as the fieldAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4239 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-26newforms: Implemented RadioFieldRenderer.__getitem__(), which allows for ↵Adrian Holovaty
index lookup on radio fields git-svn-id: http://code.djangoproject.com/svn/django/trunk@4238 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-24newforms: Added django.newforms.extras.widgets, with SelectDateWidget ↵Adrian Holovaty
implementation, plus some unit tests git-svn-id: http://code.djangoproject.com/svn/django/trunk@4236 bcc190cf-cafb-0310-a4f2-bffc1f526a37