Display status media in status view

This commit is contained in:
Kumi 2021-01-04 11:34:05 +01:00
parent 6750ab44f0
commit f83a4cc49f

View file

@ -50,6 +50,21 @@
</div>
</div>
</div>
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Attachments</h6>
</div>
<div class="py-3">
<div class="container">
<ul>
{% for attachment in object.statusmedia_set.all %}
<li><a href="{{ attachment.file.url }}">{{ attachment.file.name }}</a></li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% endblock %}