mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-30 05:24:00 +03:00
177e666fc2
Latest Modelresource example is broken. Required attribute should be set to form, not model. Is fixed.
7 lines
246 B
Python
7 lines
246 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.')
|