diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-02-03 00:49:58 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-02-03 00:49:58 +0100 |
commit | 77500b5ae4a0ce3e2fbb928b5cf9847ab9a69c5e (patch) | |
tree | 9afd7c785b7c1fa04abcf1b2a2d5a477f85e9e48 /archaeological_operations/forms.py | |
parent | d3959af5b232f0ab121c5e32032d1389d0e97139 (diff) | |
download | Ishtar-77500b5ae4a0ce3e2fbb928b5cf9847ab9a69c5e.tar.bz2 Ishtar-77500b5ae4a0ce3e2fbb928b5cf9847ab9a69c5e.zip |
Implement Select2 selection as a multi select widget
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r-- | archaeological_operations/forms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index 0a8f9d94d..fa5816bf6 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -645,9 +645,9 @@ class ArchaeologicalSiteForm(forms.Form): reference = forms.CharField(label=_(u"Reference"), max_length=20) name = forms.CharField(label=_(u"Name"), max_length=200, required=False) periods = forms.MultipleChoiceField(label=_("Periods"), - choices=[], widget=forms.CheckboxSelectMultiple) + choices=[], widget=widgets.Select2Multiple, required=False) remains = forms.MultipleChoiceField(label=_("Remains"), - choices=[], widget=forms.CheckboxSelectMultiple) + choices=[], widget=widgets.Select2Multiple, required=False) def __init__(self, *args, **kwargs): self.limits = {} |