Skip to content

Commit

Permalink
Merge pull request #1163 from benjaoming/fix-attachment-search-get_size
Browse files Browse the repository at this point in the history
Attachment search: Use exception-proof get_size when files deleted
  • Loading branch information
benjaoming committed Jan 20, 2022
2 parents 9b05df9 + 7f9ab3e commit c51757a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docs/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ Release plan
- **0.7.x** Removes Django 2.1 support, adds Django 3.1, 3.2


0.7.11 (unreleased)
-------------------

Fixed
~~~~~

- Attachment search failing if files exceptionally missing on server :url-issue:`1162` (Benjamin Balder Bach)


0.7.10
------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h4>{{ attachment.original_filename }}</h4>
<td>
{% include "wiki/includes/revision_info.html" with revision=attachment.current_revision hidedate=1 hidenumber=1 %}
</td>
<td>{{ attachment.current_revision.file.size|filesizeformat }}</td>
<td>{{ attachment.current_revision.get_size|filesizeformat }}</td>
<td style="text-align: right">
<form method="POST" action="{% url 'wiki:attachments_add' path=urlpath.path article_id=article.id attachment_id=attachment.id %}">
{% csrf_token %}
Expand Down

0 comments on commit c51757a

Please sign in to comment.