symposion_app/symposion/cms/forms.py
Carlos Henrique Romano 36ab6d599f Fix flake8 warnings
2014-07-30 15:19:26 -03:00

21 lines
387 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(),
}
class FileUploadForm(forms.Form):
file = forms.FileField()