Ticket #4398: 4398_newforms_admin_js_path_fix.diff
File 4398_newforms_admin_js_path_fix.diff, 848 bytes (added by , 17 years ago) |
---|
-
branches/newforms-admin/django/contrib/admin/options.py
216 216 js.append('js/admin/CollapsedFieldsets.js') 217 217 break 218 218 prefix = settings.ADMIN_MEDIA_PREFIX 219 return ['%s%s' % (prefix, url) for url in js] 219 js_urls = [] 220 for url in js: 221 if url.startswith('http://') or url.startswith('/'): 222 js_urls.append(url) 223 else: 224 js_urls.append('%s%s' % (prefix, url)) 225 return js_urls 220 226 221 227 def javascript_add(self, request): 222 228 return self.javascript(request, self.fieldsets_add(request))