~ubuntu-branches/ubuntu/quantal/python-django/quantal-security

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2010-05-24 22:44:32 UTC
  • mfrom: (1.1.11 upstream) (4.4.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100524224432-lz0tq65rhy8cov3y
Tags: 1.2.1-1
New upstream bugfix release.

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 #############################################