mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Merged regressiontests and modeltests into the test root.
This commit is contained in:
18
tests/generic_views/forms.py
Normal file
18
tests/generic_views/forms.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django import forms
|
||||
|
||||
from .models import Author
|
||||
|
||||
|
||||
class AuthorForm(forms.ModelForm):
|
||||
name = forms.CharField()
|
||||
slug = forms.SlugField()
|
||||
|
||||
class Meta:
|
||||
model = Author
|
||||
|
||||
|
||||
class ContactForm(forms.Form):
|
||||
name = forms.CharField()
|
||||
message = forms.CharField(widget=forms.Textarea)
|
||||
Reference in New Issue
Block a user