diff options
| author | lobziik <lobziiko.o@gmail.com> | 2015-11-07 16:47:36 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-11-07 21:28:13 +0100 |
| commit | 7a48f9abf276d9d5d757f74d405c9c1d7642b7a0 (patch) | |
| tree | 6185f085ae38721d1163dd3d48fca1bf675c2c7e /tests/generic_views/forms.py | |
| parent | 0115f9faa517bba882a31b0ade076601b5a41de6 (diff) | |
Renamed a test file that has no tests.
Diffstat (limited to 'tests/generic_views/forms.py')
| -rw-r--r-- | tests/generic_views/forms.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/generic_views/forms.py b/tests/generic_views/forms.py new file mode 100644 index 0000000000..1ee26afc8f --- /dev/null +++ b/tests/generic_views/forms.py @@ -0,0 +1,19 @@ +from __future__ import unicode_literals + +from django import forms + +from .models import Author + + +class AuthorForm(forms.ModelForm): + name = forms.CharField() + slug = forms.SlugField() + + class Meta: + model = Author + fields = ['name', 'slug'] + + +class ContactForm(forms.Form): + name = forms.CharField() + message = forms.CharField(widget=forms.Textarea) |
