Update account snapshot list

This commit is contained in:
Edgar P. Burkhart 2022-12-31 11:28:39 +01:00
parent 7f4b6a0415
commit 39896129a6
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 5 additions and 0 deletions

View file

@ -19,5 +19,8 @@
{% csrf_token %} {% csrf_token %}
{{ form }} {{ form }}
</form> </form>
<h2>{% translate "Statements" %}</h2>
{% include "main/table/snapshot.html" %}
<h2>{% translate "Transactions" %}</h2>
{% include "main/table/transaction.html" %} {% include "main/table/transaction.html" %}
{% endblock %} {% endblock %}

View file

@ -128,6 +128,8 @@ class AccountUpdateView(NummiUpdateView):
"transactions_url": reverse_lazy( "transactions_url": reverse_lazy(
"account_transactions", args=(account.pk,) "account_transactions", args=(account.pk,)
), ),
"snapshots": account.snapshot_set.all()[:8],
"snapshots_url": reverse_lazy("account_snapshots", args=(account.pk,)),
} }