From 5120f018daa8f2c7e3599b5a2c0d30775bb4ec21 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Sat, 30 Jul 2011 17:37:39 +0000 Subject: [PATCH] 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 --- django/contrib/admin/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index 550f46aed3..ec5dac5b67 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -1329,7 +1329,7 @@ class InlineModelAdmin(BaseModelAdmin): def _media(self): js = ['jquery.min.js', 'jquery.init.js', 'inlines.min.js'] 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: js.extend(['SelectBox.js', 'SelectFilter2.js']) return forms.Media(js=['admin/js/%s' % url for url in js])