summaryrefslogtreecommitdiff
path: root/ishtar_common/widgets.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-08-22 17:44:05 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-08-22 17:44:05 +0200
commit36cb823793aa0d71ec5382eb49c072471aa3b49f (patch)
treeabb191957ac57ee71ddf2de9a4283ba5e59ecfe1 /ishtar_common/widgets.py
parent0a4d77216bfe581aff3f29b2ac3088e7c61ed55e (diff)
downloadIshtar-36cb823793aa0d71ec5382eb49c072471aa3b49f.tar.bz2
Ishtar-36cb823793aa0d71ec5382eb49c072471aa3b49f.zip
Fix templates with loop errors
Diffstat (limited to 'ishtar_common/widgets.py')
-rw-r--r--ishtar_common/widgets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py
index 79c0513c0..eb68bac2e 100644
--- a/ishtar_common/widgets.py
+++ b/ishtar_common/widgets.py
@@ -135,8 +135,8 @@ class Select2Multiple(forms.SelectMultiple):
else:
options = "{"
options += " containerCssClass: 'full-width'}"
- html = super(Select2Multiple, self).render(name, value, attrs,
- choices)
+ self.choices = choices
+ html = super(Select2Multiple, self).render(name, value, attrs)
html += """<script type="text/javascript">
$(document).ready(function() {{
$("#id_{}").select2({});