Ticket #6750: 6750.diff
File 6750.diff, 829 bytes (added by , 17 years ago) |
---|
-
django/contrib/admin/widgets.py
72 72 from django.conf import settings 73 73 output = [] 74 74 if value: 75 output.append('%s <a target="_blank" href="%s%s">%s</a> <br />%s ' % \76 (_('Currently:'), settings.MEDIA_URL, value, value, _('Change:')))75 output.append('%s <a href="%s%s" onclick="window.open(\'%s%s\'); return false">%s</a> <br />%s ' % \ 76 (_('Currently:'), settings.MEDIA_URL, value, settings.MEDIA_URL, value, value, _('Change:'))) 77 77 output.append(super(AdminFileWidget, self).render(name, value, attrs)) 78 78 return mark_safe(u''.join(output)) 79 79