diff options
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 |
commit | eeab674b10b2fca2a4660a99202aa2dd07ee5594 (patch) | |
tree | abb191957ac57ee71ddf2de9a4283ba5e59ecfe1 /ishtar_common/widgets.py | |
parent | 0b464a01663afc41fa8732ffa1e1f24e5c9aab86 (diff) | |
download | Ishtar-eeab674b10b2fca2a4660a99202aa2dd07ee5594.tar.bz2 Ishtar-eeab674b10b2fca2a4660a99202aa2dd07ee5594.zip |
Fix templates with loop errors
Diffstat (limited to 'ishtar_common/widgets.py')
-rw-r--r-- | ishtar_common/widgets.py | 4 |
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({}); |