Update account snapshot list
This commit is contained in:
parent
7f4b6a0415
commit
39896129a6
2 changed files with 5 additions and 0 deletions
|
@ -19,5 +19,8 @@
|
|||
{% csrf_token %}
|
||||
{{ form }}
|
||||
</form>
|
||||
<h2>{% translate "Statements" %}</h2>
|
||||
{% include "main/table/snapshot.html" %}
|
||||
<h2>{% translate "Transactions" %}</h2>
|
||||
{% include "main/table/transaction.html" %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -128,6 +128,8 @@ class AccountUpdateView(NummiUpdateView):
|
|||
"transactions_url": reverse_lazy(
|
||||
"account_transactions", args=(account.pk,)
|
||||
),
|
||||
"snapshots": account.snapshot_set.all()[:8],
|
||||
"snapshots_url": reverse_lazy("account_snapshots", args=(account.pk,)),
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue