Fixed #16540 -- Fixed typo in InlineModelAdmin introduced in r16487 that broke the prepopulated fields. Thanks, mk.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16574 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
343b4f1ea5
commit
5120f018da
|
@ -1329,7 +1329,7 @@ class InlineModelAdmin(BaseModelAdmin):
|
||||||
def _media(self):
|
def _media(self):
|
||||||
js = ['jquery.min.js', 'jquery.init.js', 'inlines.min.js']
|
js = ['jquery.min.js', 'jquery.init.js', 'inlines.min.js']
|
||||||
if self.prepopulated_fields:
|
if self.prepopulated_fields:
|
||||||
js.extend(['urlify.js, prepopulate.min.js'])
|
js.extend(['urlify.js', 'prepopulate.min.js'])
|
||||||
if self.filter_vertical or self.filter_horizontal:
|
if self.filter_vertical or self.filter_horizontal:
|
||||||
js.extend(['SelectBox.js', 'SelectFilter2.js'])
|
js.extend(['SelectBox.js', 'SelectFilter2.js'])
|
||||||
return forms.Media(js=['admin/js/%s' % url for url in js])
|
return forms.Media(js=['admin/js/%s' % url for url in js])
|
||||||
|
|
Loading…
Reference in New Issue