Browse Source

Alterando o tamanho do arquivo para ser exibido

diagnosticos
Gilson Filho 13 years ago
parent
commit
4de81b8cc2
  1. 3
      sigi/apps/utils/admin_widgets.py

3
sigi/apps/utils/admin_widgets.py

@ -9,7 +9,8 @@ class AdminImageWidget(AdminFileWidget):
image_url = value.url
file_name=str(value)
output.append(
u' <a href="%s" target="_blank"><img src="%s" width="200" alt="%s"/></a> <br/> %s' % \
u''' <a href="%s" target="_blank"><img src="%s" width="100"
height="100" alt="%s"/></a> <br/> %s''' % \
(image_url, image_url, file_name, _('Change:')))
output.append(super(AdminFileWidget, self).render(name, value, attrs))
return mark_safe(u''.join(output))

Loading…
Cancel
Save