diff options
| author | tom christie tom@tomchristie.com | 2010-12-30 23:30:09 +0000 |
|---|---|---|
| committer | tom christie tom@tomchristie.com | 2010-12-30 23:30:09 +0000 |
| commit | c10a95de0869348ccf0f54d4f44f5b52b98e58f0 (patch) | |
| tree | 31161ca9184fc508ace1e09d45a003f7bd7ffa9e /src/testapp/forms.py | |
| parent | c56e48f52e26a81d7a9f81fd74b0ea46d5434a90 (diff) | |
| download | django-rest-framework-c10a95de0869348ccf0f54d4f44f5b52b98e58f0.tar.bz2 | |
Add parsers, form validation, etc...
Diffstat (limited to 'src/testapp/forms.py')
| -rw-r--r-- | src/testapp/forms.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testapp/forms.py b/src/testapp/forms.py new file mode 100644 index 00000000..b86d8a5f --- /dev/null +++ b/src/testapp/forms.py @@ -0,0 +1,7 @@ +from django import forms + +class ExampleForm(forms.Form): + title = forms.CharField(max_length=100) + message = forms.CharField() + sender = forms.EmailField() + valid = forms.BooleanField(required=False) |
