symposion_app/symposion/speakers/forms.py

20 lines
368 B
Python
Raw Normal View History

2012-07-12 04:38:24 +00:00
from django import forms
from markitup.widgets import MarkItUpWidget
from symposion.speakers.models import Speaker
class SpeakerForm(forms.ModelForm):
class Meta:
model = Speaker
fields = [
"name",
"biography",
"photo",
]
widgets = {
"biography": MarkItUpWidget(),
}