Changeset 7971 for django/trunk/tests/regressiontests/forms/extra.py
- Timestamp:
- 07/18/08 20:22:26 (4 months ago)
- Files:
-
- django/trunk/tests/regressiontests/forms/extra.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/regressiontests/forms/extra.py
r7337 r7971 1 1 # -*- coding: utf-8 -*- 2 2 tests = r""" 3 >>> from django. newforms import *3 >>> from django.forms import * 4 4 >>> from django.utils.encoding import force_unicode 5 5 >>> import datetime … … 15 15 ############### 16 16 17 The newforms library comes with some extra, higher-level Field and Widget17 The forms library comes with some extra, higher-level Field and Widget 18 18 classes that demonstrate some of the library's abilities. 19 19 20 20 # SelectDateWidget ############################################################ 21 21 22 >>> from django. newforms.extras import SelectDateWidget22 >>> from django.forms.extras import SelectDateWidget 23 23 >>> w = SelectDateWidget(years=('2007','2008','2009','2010','2011','2012','2013','2014','2015','2016')) 24 24 >>> print w.render('mydate', '') … … 425 425 ####################################### 426 426 427 >>> from django. newforms.util import ErrorList427 >>> from django.forms.util import ErrorList 428 428 >>> class DivErrorList(ErrorList): 429 429 ... def __unicode__(self):
