Ticket #1099: admin.diff
File admin.diff, 925 bytes (added by , 19 years ago) |
---|
-
store/django/django/contrib/admin/templatetags/admin_modify.py
17 17 18 18 #@register.simple_tag 19 19 def include_admin_script(script_path): 20 return '<script type="text/javascript" src="%s%s"></script>' % (ADMIN_MEDIA_PREFIX, script_path) 20 if script_path.startswith('/'): 21 # absolute path requested, ignore ADMIN_MEDIA_PREFIX 22 return '<script type="text/javascript" src="%s"></script>' % script_path 23 else: 24 return '<script type="text/javascript" src="%s%s"></script>' % (ADMIN_MEDIA_PREFIX, script_path) 21 25 include_admin_script = register.simple_tag(include_admin_script) 22 26 23 27 #@register.inclusion_tag('admin/submit_line', takes_context=True)