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
commiteeab674b10b2fca2a4660a99202aa2dd07ee5594 (patch)
treeabb191957ac57ee71ddf2de9a4283ba5e59ecfe1 /ishtar_common/widgets.py
parent0b464a01663afc41fa8732ffa1e1f24e5c9aab86 (diff)
downloadIshtar-eeab674b10b2fca2a4660a99202aa2dd07ee5594.tar.bz2
Ishtar-eeab674b10b2fca2a4660a99202aa2dd07ee5594.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({});