Ticket #11888: t11888_r11366.patch

File t11888_r11366.patch, 766 bytes (added by rjc, 15 years ago)

patch against v1.1 (r11366)

  • django/contrib/admin/widgets.py

     
    9191    def render(self, name, value, attrs=None):
    9292        output = []
    9393        if value and hasattr(value, "url"):
     94            from django.utils.encoding import iri_to_uri
    9495            output.append('%s <a target="_blank" href="%s">%s</a> <br />%s ' % \
    95                 (_('Currently:'), value.url, value, _('Change:')))
     96                (_('Currently:'), iri_to_uri(value.url), unicode(value), _('Change:')))
    9697        output.append(super(AdminFileWidget, self).render(name, value, attrs))
    9798        return mark_safe(u''.join(output))
    9899
Back to Top