django-markupwiki/markupwiki/forms.py

13 lines
322 B
Python
Raw Normal View History

2010-03-30 14:43:30 +00:00
from django import forms
from markupwiki.models import Article, ArticleVersion
2010-03-30 14:43:30 +00:00
class ArticleForm(forms.ModelForm):
class Meta:
model = ArticleVersion
fields = ['body', 'body_markup_type']
class StaffModerationForm(forms.ModelForm):
class Meta:
model = Article
fields = ['status']