2011-06-01 21:47:00 +08:00
|
|
|
from django import forms
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
class HashTestForm(forms.Form):
|
|
|
|
name = forms.CharField()
|
|
|
|
bio = forms.CharField()
|
|
|
|
|
|
|
|
class HashTestBlankForm(forms.Form):
|
|
|
|
name = forms.CharField(required=False)
|
|
|
|
bio = forms.CharField(required=False)
|