Hello site
[auf_framonde.git] / eggs / Django-1.4.5-py2.7.egg / django / contrib / admin / templatetags / adminmedia.py
1 import warnings
2 from django.template import Library
3 from django.templatetags.static import PrefixNode
4
5 register = Library()
6
7 @register.simple_tag
8 def admin_media_prefix():
9 """
10 Returns the string contained in the setting ADMIN_MEDIA_PREFIX.
11 """
12 warnings.warn(
13 "The admin_media_prefix template tag is deprecated. "
14 "Use the static template tag instead.", PendingDeprecationWarning)
15 return PrefixNode.handle_simple("ADMIN_MEDIA_PREFIX")