2011-06-01 21:47:00 +08:00
|
|
|
from django import forms
|
|
|
|
|
2013-10-31 23:42:28 +08:00
|
|
|
|
2011-06-01 21:47:00 +08:00
|
|
|
class TestForm(forms.Form):
|
|
|
|
field1 = forms.CharField()
|
|
|
|
field1_ = forms.CharField()
|
|
|
|
bool1 = forms.BooleanField(required=False)
|
2012-08-14 15:45:53 +08:00
|
|
|
date1 = forms.DateField(required=False)
|
2011-06-01 21:47:00 +08:00
|
|
|
|
2013-10-31 23:42:28 +08:00
|
|
|
|
2011-06-01 21:47:00 +08:00
|
|
|
class HashTestForm(forms.Form):
|
|
|
|
name = forms.CharField()
|
|
|
|
bio = forms.CharField()
|
|
|
|
|
2013-10-31 23:42:28 +08:00
|
|
|
|
2011-06-01 21:47:00 +08:00
|
|
|
class HashTestBlankForm(forms.Form):
|
|
|
|
name = forms.CharField(required=False)
|
|
|
|
bio = forms.CharField(required=False)
|