django-rest-framework/examples/resourceexample/forms.py

7 lines
232 B
Python
Raw Normal View History

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.')