From 002e3fd9e46a3914f974dbfaf546c968f8d8f5d2 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Sat, 18 Apr 2009 17:35:53 +0000 Subject: Fixed #9124: fixed `SelectDateWidget` with `required=False`. Thanks, Bernd Schlapsi. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10584 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/forms/extra.py | 130 +++++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) (limited to 'tests/regressiontests/forms') diff --git a/tests/regressiontests/forms/extra.py b/tests/regressiontests/forms/extra.py index 80f7ef6535..eb586d0ecc 100644 --- a/tests/regressiontests/forms/extra.py +++ b/tests/regressiontests/forms/extra.py @@ -23,6 +23,7 @@ classes that demonstrate some of the library's abilities. >>> w = SelectDateWidget(years=('2007','2008','2009','2010','2011','2012','2013','2014','2015','2016')) >>> print w.render('mydate', '') + + + + + + + + + + + + + + + + +>>> print w.render('mydate', '2010-04-15') + + + >>> class GetDate(Form): ... mydate = DateField(widget=SelectDateWidget) >>> a = GetDate({'mydate_month':'4', 'mydate_day':'1', 'mydate_year':'2008'}) -- cgit v1.3