mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Renamed a test file that has no tests.
This commit is contained in:
19
tests/generic_views/forms.py
Normal file
19
tests/generic_views/forms.py
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user