Fix empty accounts producing error 500
This commit is contained in:
parent
ee3ec21527
commit
e93f6f5d2b
1 changed files with 3 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue