Skip to content

Commit

Permalink
add attachments in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Apr 29, 2024
1 parent f746b80 commit 902561c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion georiviere/contribution/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def render(self, name, value, attrs=None, renderer=None):
image_url = value.url
file_name = str(value)
output.append(
' <a href="%s" target="_blank"><img src="%s" alt="%s" max-width="80px" max-height="80px" style="object-fit: cover;"/></a> %s '
' <a href="%s" target="_blank"><img src="%s" alt="%s" style="max-height: 60px; max-width: 60px;"/></a> %s '
% (image_url, image_url, file_name, _(""))
)
output.append(super().render(name, value, attrs))
Expand Down

0 comments on commit 902561c

Please sign in to comment.