Skip to content

Commit

Permalink
fix(forum_attachment) missing file in dev - add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Sep 18, 2023
1 parent 611f36b commit a8c5d35
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
{% if post.attachments.exists and user_can_download_files %}
<div class="row attachments mt-3 mt-md-5">
{% for attachment in post.attachments.all %}
{% comment %}to prevent failure in dev, when files don't exist{% endcomment %}
{% if attachement %}
{% if not attachment|is_image %}
<div class="col-md-12 attachment">
Expand Down

0 comments on commit a8c5d35

Please sign in to comment.