Ticket #10717: 10717.diff
File 10717.diff, 642 bytes (added by , 16 years ago) |
---|
-
django/contrib/admin/templatetags/adminmedia.py
1 1 from django.template import Library 2 from django.utils.encoding import iri_to_uri 2 3 3 4 register = Library() 4 5 … … 10 11 from django.conf import settings 11 12 except ImportError: 12 13 return '' 13 return settings.ADMIN_MEDIA_PREFIX14 return iri_to_uri(settings.ADMIN_MEDIA_PREFIX) 14 15 admin_media_prefix = register.simple_tag(admin_media_prefix)