root / env / lib / python2.7 / site-packages / django / contrib / admin / templatetags / adminmedia.py @ 1a305335
History | View | Annotate | Download (470 Bytes)
1 | 1a305335 | officers | 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") |