Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #2582 -- filter_interface now works on fields with verbose_name…

… containing quotes. Thanks for reporting, 235

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3649 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 3cfc8bb5d9ac06811ea8815c6a3a4b31817216e1 1 parent 5ddd0e0
@adrianholovaty adrianholovaty authored
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 ''
Please sign in to comment.
Something went wrong with that request. Please try again.