symposion_app/symposion/cms/forms.py

17 lines
325 B
Python
Raw Normal View History

2012-07-10 22:18:48 +00:00
from django import forms
from markitup.widgets import MarkItUpWidget
from .models import Page
class PageForm(forms.ModelForm):
class Meta:
model = Page
fields = ["title", "body", "path"]
widgets = {
"body": MarkItUpWidget(),
"path": forms.HiddenInput(),
}