|
Revision 4265, 361 bytes
(checked in by adrian, 2 years ago)
|
Fixed #3191 -- Set 'svn:eol-style native' on the files that didn't have it. Thanks, jjl@pobox.com
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
from django.template import Library |
|---|
| 2 |
|
|---|
| 3 |
register = Library() |
|---|
| 4 |
|
|---|
| 5 |
def admin_media_prefix(): |
|---|
| 6 |
""" |
|---|
| 7 |
Returns the string contained in the setting ADMIN_MEDIA_PREFIX. |
|---|
| 8 |
""" |
|---|
| 9 |
try: |
|---|
| 10 |
from django.conf import settings |
|---|
| 11 |
except ImportError: |
|---|
| 12 |
return '' |
|---|
| 13 |
return settings.ADMIN_MEDIA_PREFIX |
|---|
| 14 |
admin_media_prefix = register.simple_tag(admin_media_prefix) |
|---|