From eeab674b10b2fca2a4660a99202aa2dd07ee5594 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 22 Aug 2017 17:44:05 +0200 Subject: Fix templates with loop errors --- ishtar_common/widgets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ishtar_common/widgets.py') 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 += """