The get_admin_media() helper is no longer needed

master
David Jean Louis 2015-07-07 10:56:43 +02:00
parent 6891e59fc3
commit 97e5b92c83
1 changed files with 0 additions and 12 deletions

View File

@ -19,15 +19,3 @@ def render_theming_css():
css = '/'.join(['admin_tools', 'css', 'theming.css'])
return '<link rel="stylesheet" type="text/css" media="screen" href="%s" />' % staticfiles_storage.url(css)
register.simple_tag(render_theming_css)
def get_admin_media(media=''):
"""
Template tag that renders the needed css files for the theming app.
"""
return getattr(
settings,
'ADMIN_MEDIA_PREFIX', # django 1.3
'%sadmin/' % getattr(settings, 'STATIC_URL') # django > 1.4
) + media
register.simple_tag(get_admin_media)