2011-10-13 21:34:56 +00:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2010-10-18 13:34:47 +00:00
|
|
|
from django import forms
|
|
|
|
|
2011-10-13 21:34:56 +00:00
|
|
|
from .models import Author
|
2010-10-18 13:34:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
class AuthorForm(forms.ModelForm):
|
|
|
|
name = forms.CharField()
|
|
|
|
slug = forms.SlugField()
|
|
|
|
|
|
|
|
class Meta:
|
|
|
|
model = Author
|
2013-02-21 21:56:55 +00:00
|
|
|
fields = ['name', 'slug']
|
2012-12-04 12:18:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
class ContactForm(forms.Form):
|
|
|
|
name = forms.CharField()
|
|
|
|
message = forms.CharField(widget=forms.Textarea)
|