Ticket #2869: admin_js_httpprefix.diff
File admin_js_httpprefix.diff, 735 bytes (added by , 18 years ago) |
---|
-
django/contrib/admin/templatetags/admin_modify.py
29 29 <script type="text/javascript" src="/media/admin/js/calendar.js"> 30 30 """ 31 31 32 return '<script type="text/javascript" src="%s%s"></script>' % (settings.ADMIN_MEDIA_PREFIX, script_path) 32 return '<script type="text/javascript" src="%s%s"></script>' % ( 33 not script_path.startswith('http://') and settings.ADMIN_MEDIA_PREFIX or '', script_path) 33 34 include_admin_script = register.simple_tag(include_admin_script) 34 35 35 36 def submit_row(context):