diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index 5984dd82f3..fc7541e37f 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -828,6 +828,8 @@ class InlineModelAdmin(BaseModelAdmin): js = [] if self.prepopulated_fields: js.append('js/urlify.js') + if self.filter_vertical or self.filter_horizontal: + js.extend(['js/SelectBox.js' , 'js/SelectFilter2.js']) return forms.Media(js=['%s%s' % (settings.ADMIN_MEDIA_PREFIX, url) for url in js]) media = property(_media)