Skip to content

Commit 5b7b0c5

Browse files
Lucas WimanPetrDlouhy
authored andcommitted
Update media so it expects to find jquery in the right place.
1 parent 274c156 commit 5b7b0c5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nested_inline/admin.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,11 @@ class NestedInline(InlineModelAdmin):
356356
@property
357357
def media(self):
358358
extra = '' if settings.DEBUG else '.min'
359-
js = ['jquery%s.js' % extra, 'jquery.init.js', 'inlines-nested%s.js' % extra]
359+
if VERSION[:2] >= (1, 9):
360+
js = ['vendor/jquery/jquery%s.js' % extra, 'jquery.init.js']
361+
else:
362+
js = ['jquery%s.js' % extra, 'jquery.init.js']
363+
js.append('inlines-nested%s.js' % extra)
360364
if self.prepopulated_fields:
361365
js.extend(['urlify.js', 'prepopulate%s.js' % extra])
362366
if self.filter_vertical or self.filter_horizontal:

0 commit comments

Comments
 (0)