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