From 3cfc8bb5d9ac06811ea8815c6a3a4b31817216e1 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 22 Aug 2006 17:45:21 +0000 Subject: [PATCH] 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 --- django/contrib/admin/templatetags/admin_modify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/admin/templatetags/admin_modify.py b/django/contrib/admin/templatetags/admin_modify.py index 7ba7bef74e..55d8bb2b95 100644 --- a/django/contrib/admin/templatetags/admin_modify.py +++ b/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 '\n' % ( + ' SelectFilter.init("id_%s", %r, %s, "%s"); });\n' % ( f.name, f.verbose_name, f.rel.filter_interface-1, settings.ADMIN_MEDIA_PREFIX) else: return ''