From e93f6f5d2baec805378bb1b066e0b86cdd902b9e Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Sat, 23 Mar 2024 10:52:28 +0100 Subject: [PATCH] Fix empty accounts producing error 500 --- nummi/main/templates/main/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nummi/main/templates/main/index.html b/nummi/main/templates/main/index.html index c5b457b..1c278b0 100644 --- a/nummi/main/templates/main/index.html +++ b/nummi/main/templates/main/index.html @@ -27,7 +27,9 @@ {{ acc }} - {{ acc.statement_set.first.value|value }} + + {% if acc.statement_set.first %}{{ acc.statement_set.first.value|value }}{% endif %} + {% translate "Edit" %}