2011-10-14 05:34:56 +08:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2010-10-18 21:34:47 +08:00
|
|
|
from django import forms
|
|
|
|
|
2011-10-14 05:34:56 +08:00
|
|
|
from .models import Author
|
2010-10-18 21:34:47 +08:00
|
|
|
|
|
|
|
|
|
|
|
class AuthorForm(forms.ModelForm):
|
|
|
|
name = forms.CharField()
|
|
|
|
slug = forms.SlugField()
|
|
|
|
|
|
|
|
class Meta:
|
|
|
|
model = Author
|