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
This commit is contained in:
parent
5ddd0e0498
commit
3cfc8bb5d9
|
@ -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 ''
|
||||
|
|
Loading…
Reference in New Issue