Ticket #10717: 10717.diff

File 10717.diff, 642 bytes (added by Chris Beaven, 16 years ago)
  • django/contrib/admin/templatetags/adminmedia.py

     
    11from django.template import Library
     2from django.utils.encoding import iri_to_uri
    23
    34register = Library()
    45
     
    1011        from django.conf import settings
    1112    except ImportError:
    1213        return ''
    13     return settings.ADMIN_MEDIA_PREFIX
     14    return iri_to_uri(settings.ADMIN_MEDIA_PREFIX)
    1415admin_media_prefix = register.simple_tag(admin_media_prefix)
Back to Top