/django/contrib/admin/templatetags/adminmedia.py
https://code.google.com/p/mango-py/ · Python · 11 lines · 6 code · 2 blank · 3 comment · 0 complexity · ef6530104e65aebcf1755d615bbc8bab MD5 · raw file
- from django.template import Library
- from django.templatetags.static import PrefixNode
- register = Library()
- @register.simple_tag
- def admin_media_prefix():
- """
- Returns the string contained in the setting ADMIN_MEDIA_PREFIX.
- """
- return PrefixNode.handle_simple("ADMIN_MEDIA_PREFIX")