2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 15:41:10 +00:00

Provide download link for part attachments

- Better upload management for attachment files (separated based on part ID)
This commit is contained in:
Oliver Walters
2019-04-18 00:14:53 +10:00
parent d9d4e0043a
commit e707eb3a2b
2 changed files with 7 additions and 10 deletions

View File

@@ -66,7 +66,7 @@
<h4>Attachments</h4>
<ul>
{% for attachment in part.attachments.all %}
<li><a href="{{ attachment.attachment }}">{{ attachment.attachment }}</a></li>
<li><a href="/media/{{ attachment.attachment }}">{{ attachment.basename }}</a></li>
{% endfor %}
</ul>
</div>