File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 55"""
66from functools import partial
77
8+ from django .conf import settings
89from django .contrib .admin .options import InlineModelAdmin
910from django .contrib .admin .utils import flatten_fieldsets
1011from django .core .exceptions import ImproperlyConfigured
@@ -36,7 +37,13 @@ class PolymorphicInlineModelAdmin(InlineModelAdmin):
3637 #: The extra media to add for the polymorphic inlines effect.
3738 #: This can be redefined for subclasses.
3839 polymorphic_media = Media (
39- js = ("polymorphic/js/polymorphic_inlines.js" ,),
40+ js = (
41+ "admin/js/vendor/jquery/jquery{}.js" .format (
42+ "" if settings .DEBUG else ".min"
43+ ),
44+ "admin/js/jquery.init.js" ,
45+ "polymorphic/js/polymorphic_inlines.js" ,
46+ ),
4047 css = {"all" : ("polymorphic/css/polymorphic_inlines.css" ,)},
4148 )
4249
You can’t perform that action at this time.
0 commit comments