11 lines
333 B
Python
11 lines
333 B
Python
from django.forms import CheckboxSelectMultiple
|
|
from django.forms.models import modelform_factory
|
|
|
|
from proposals.models import Talk
|
|
|
|
__all__ = ['TalkForm']
|
|
|
|
|
|
TalkForm = modelform_factory(Talk, fields=['title', 'description', 'topics', 'event', 'speakers'],
|
|
widgets={'topics': CheckboxSelectMultiple()})
|