forked from AFPy/PonyConf
topics widget: select multiple -> checkboxes
This commit is contained in:
parent
855578a543
commit
2a1a08fb56
|
@ -1,3 +1,4 @@
|
||||||
|
from django.forms import CheckboxSelectMultiple
|
||||||
from django.forms.models import modelform_factory
|
from django.forms.models import modelform_factory
|
||||||
|
|
||||||
from proposals.models import Talk
|
from proposals.models import Talk
|
||||||
|
@ -5,4 +6,5 @@ from proposals.models import Talk
|
||||||
__all__ = ['TalkForm']
|
__all__ = ['TalkForm']
|
||||||
|
|
||||||
|
|
||||||
TalkForm = modelform_factory(Talk, fields=['title', 'description', 'topics', 'event'])
|
TalkForm = modelform_factory(Talk, fields=['title', 'description', 'topics', 'event'],
|
||||||
|
widgets={'topics': CheckboxSelectMultiple()})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user