Hello site
[auf_framonde.git] / eggs / Django-1.4.5-py2.7.egg / django / contrib / admin / templatetags / adminmedia.py
CommitLineData
01b54c21
MN
1import warnings
2from django.template import Library
3from django.templatetags.static import PrefixNode
4
5register = Library()
6
7@register.simple_tag
8def 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")