summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
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
commit5d3e9a1435a575dd27695e3c0ff0e6282acc0c0f (patch)
tree9afd7c785b7c1fa04abcf1b2a2d5a477f85e9e48 /archaeological_operations/forms.py
parentb3e9441a212d033a3282dd63e1fa336e8abd60ce (diff)
downloadIshtar-5d3e9a1435a575dd27695e3c0ff0e6282acc0c0f.tar.bz2
Ishtar-5d3e9a1435a575dd27695e3c0ff0e6282acc0c0f.zip
Implement Select2 selection as a multi select widget
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r--archaeological_operations/forms.py4
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 = {}