symposion_app/symposion/cms/forms.py

22 lines
395 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(),
}
2012-10-18 06:43:00 +00:00
class FileUploadForm(forms.Form):
file = forms.FileField()