~vinay-sajip/django/logging

« back to all changes in this revision

Viewing changes to tests/regressiontests/forms/extra.py

  • Committer: Vinay Sajip
  • Date: 2010-06-01 13:15:56 UTC
  • mfrom: (52.1.11 upstream)
  • Revision ID: vinay_sajip@yahoo.co.uk-20100601131556-xiz6hh28mgngv4w7
Merged upstream SVN r13315.

Show diffs side-by-side

added added

removed removed

Lines of Context:
435
435
<option value="2016">2016</option>
436
436
</select>
437
437
 
 
438
Years before 1900 work
 
439
>>> w = SelectDateWidget(years=('1899',))
 
440
>>> w.value_from_datadict({'date_year': '1899', 'date_month': '8', 'date_day': '13'}, {}, 'date')
 
441
'13-08-1899'
 
442
 
438
443
>>> translation.deactivate()
439
444
 
440
445
# MultiWidget and MultiValueField #############################################