symposion_app/symposion/cms/forms.py
2012-07-10 18:18:48 -04:00

16 lines
325 B
Python

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(),
}