From f0195682f205e2f701b51a29a0385b6da2e66f89 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 25 Sep 2022 22:39:01 +0300 Subject: Now shows cave id even if no *ref --- templates/manywallets.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/manywallets.html b/templates/manywallets.html index 3303c9d..5810ac9 100644 --- a/templates/manywallets.html +++ b/templates/manywallets.html @@ -35,7 +35,10 @@ see https://docs.djangoproject.com/en/3.2/ref/models/querysets/#prefetch-related {% ifchanged survexblock.survexfile.cave %} {{survexblock.survexfile.cave.slug}} {% endifchanged %} - + {% empty %} + {% if scanswallet.cave %} + {{scanswallet.cave}} + {% endif %} {% endfor %} -- cgit v1.2.3