summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Jean Louis <izimobil@gmail.com>2015-07-07 08:56:43 (GMT)
committerDavid Jean Louis <izimobil@gmail.com>2015-07-07 08:56:43 (GMT)
commit97e5b92c83cb7993f0faad33c127b99b733650a8 (patch)
treee40f11a984355492cf3647b988a694a890c06fe6
parent6891e59fc3c82da25f8f0ad7b2a4311091041a15 (diff)
downloaddjango-admin-tools-97e5b92c83cb7993f0faad33c127b99b733650a8.zip
django-admin-tools-97e5b92c83cb7993f0faad33c127b99b733650a8.tar.gz
django-admin-tools-97e5b92c83cb7993f0faad33c127b99b733650a8.tar.bz2
The get_admin_media() helper is no longer needed
-rw-r--r--admin_tools/theming/templatetags/theming_tags.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/admin_tools/theming/templatetags/theming_tags.py b/admin_tools/theming/templatetags/theming_tags.py
index d21c49d..c8cb772 100644
--- a/admin_tools/theming/templatetags/theming_tags.py
+++ b/admin_tools/theming/templatetags/theming_tags.py
@@ -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)