- output = [super(FilteredSelectMultiple, self).render(name, value, attrs, choices)]
- output.append(u'<script type="text/javascript">addEvent(window, "load", function(e) {')
+ output = [
+ super(FilteredSelectMultiple, self).render(name, value, attrs, choices),
+ u'<script type="text/javascript">addEvent(window, "load", function(e) {',
+ u'SelectFilter.init("id_%s", "%s", %s, "%s"); });</script>\n' % (
+ name, self.verbose_name.replace('"', '\\"'),
+ int(self.is_stacked), settings.STATIC_URL + "admin/")
+ ]