Permalink
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/templatetags/admin_modify.py
View
2 django/contrib/admin/templatetags/admin_modify.py
@@ -195,7 +195,7 @@ def filter_interface_script_maybe(bound_field):
f = bound_field.field
if f.rel and isinstance(f.rel, models.ManyToManyRel) and f.rel.filter_interface:
return '<script type="text/javascript">addEvent(window, "load", function(e) {' \
- ' SelectFilter.init("id_%s", "%s", %s, "%s"); });</script>\n' % (
+ ' SelectFilter.init("id_%s", %r, %s, "%s"); });</script>\n' % (
f.name, f.verbose_name, f.rel.filter_interface-1, settings.ADMIN_MEDIA_PREFIX)
else:
return ''

0 comments on commit 3cfc8bb

Please sign in to comment.