def render(self, name, value, attrs=None):
        output = []
        file_name = str(value)
        if file_name:
            file_path = (settings.MEDIA_URL, file_name) % '%s%s'
            try:            # is image
                Image.open(os.path.join(settings.MEDIA_ROOT, file_name))
                output.append('<a target="_blank" href="%s">%s</a><br />%s <a target="_blank" href="%s">%s</a><br />%s ' % \
                    (file_path, thumbnail(file_name), _('Currently:'), file_path, file_name, _('Change:')))
            except IOError: # not image
                output.append('%s <a target="_blank" href="%s">%s</a> <br />%s ' % \
                    (_('Currently:'), file_path, file_name, _('Change:')))
            
        output.append(super(AdminFileWidget, self).render(name, value, attrs))
        return mark_safe(u''.join(output))
dataset/ETHPy150Open montylounge/django-sugar/sugar/widgets/admin_image/widget.py/AdminImageWidget.render/swapped operands of `%`