mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 13:14:30 +03:00
8 lines
247 B
Python
8 lines
247 B
Python
from django import forms
|
|
|
|
|
|
class MyForm(forms.Form):
|
|
foo = forms.BooleanField(required=False)
|
|
bar = forms.IntegerField(help_text='Must be an integer.')
|
|
baz = forms.CharField(max_length=32, help_text='Free text. Max length 32 chars.')
|