Skip to content

Commit

Permalink
Oprava výnimky ak upload neexistuje
Browse files Browse the repository at this point in the history
  • Loading branch information
mireq committed Jul 24, 2021
1 parent 6009dd6 commit 7dd3032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/includes/form_attachment_loop.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</td>
<td>
<a href="{{ attachment.instance.attachment.url }}">{{ attachment.instance.basename }}</a>
({{ attachment.instance.attachment.size|filesizeformat }})
{% if attachment.instance.attachment.storage.exists(attachment.instance.attachment.name) %}({{ attachment.instance.attachment.size|filesizeformat }}){% endif %}
</td>
{% if form.has_visibility %}
<td class="attachment_visibility">
Expand Down

0 comments on commit 7dd3032

Please sign in to comment.