Fix empty accounts producing error 500

This commit is contained in:
Edgar P. Burkhart 2024-03-23 10:52:28 +01:00
parent ee3ec21527
commit e93f6f5d2b
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -27,7 +27,9 @@
<th class="l">
<a href="{{ acc.get_absolute_url }}">{{ acc }}</a>
</th>
<td class="value">{{ acc.statement_set.first.value|value }}</td>
<td class="value">
{% if acc.statement_set.first %}{{ acc.statement_set.first.value|value }}{% endif %}
</td>
<td>
<a href="{% url "edit_account" acc.pk %}">{% translate "Edit" %}</a>
</td>