Fix orphan transaction detail page
This commit is contained in:
parent
c7994114a1
commit
898c92df23
2 changed files with 3 additions and 2 deletions
|
@ -17,7 +17,9 @@
|
|||
<ul>
|
||||
{% if statement %}
|
||||
<li>
|
||||
<a href="{{ account.get_absolute_url }}">{{ account.icon|remix }}{{ account }}</a> –
|
||||
{% with statement.account as account %}
|
||||
<a href="{{ account.get_absolute_url }}">{{ account.icon|remix }}{{ account }}</a> –
|
||||
{% endwith %}
|
||||
<a href="{{ statement.get_absolute_url }}">{{ statement }}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
|
|
@ -72,7 +72,6 @@ class TransactionDetailView(NummiDetailView):
|
|||
transaction = data.get("transaction")
|
||||
|
||||
return data | {
|
||||
"account": transaction.statement.account,
|
||||
"statement": transaction.statement,
|
||||
"category": transaction.category,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue