django-rest-framework/examples/resourceexample/forms.py
2011-02-01 23:07:55 +00:00

7 lines
232 B
Python

from django import forms
class MyForm(forms.Form):
foo = forms.BooleanField()
bar = forms.IntegerField(help_text='Must be an integer.')
baz = forms.CharField(max_length=32, help_text='Free text. Max length 32 chars.')