From f0195682f205e2f701b51a29a0385b6da2e66f89 Mon Sep 17 00:00:00 2001
From: Philip Sargent <philip.sargent@klebos.com>
Date: Sun, 25 Sep 2022 22:39:01 +0300
Subject: [PATCH] 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 %}
         <a href="/cave/scans/{{survexblock.survexfile.cave.slug}}">{{survexblock.survexfile.cave.slug}}</a>
         {% endifchanged %}
-    
+    {% empty %}
+    {% if scanswallet.cave %}
+        <em><a href="/cave/scans/{{scanswallet.cave}}">{{scanswallet.cave}}</a></em>
+    {% endif %}
     {% endfor %}
     </td>
   </tr>