From 1a49e5347fb6083be8475a9d2ee9a0da0ef78404 Mon Sep 17 00:00:00 2001
From: Philip Sargent <philip.sargent@klebos.com>
Date: Tue, 16 Aug 2022 17:42:13 +0300
Subject: [PATCH] cleaner table for None values

---
 templates/cavewallets.html   | 2 +-
 templates/personwallets.html | 2 +-
 templates/yearwallets.html   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/templates/cavewallets.html b/templates/cavewallets.html
index 20dfb0c..86c85b9 100644
--- a/templates/cavewallets.html
+++ b/templates/cavewallets.html
@@ -27,7 +27,7 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c
     <td style="padding:2px"><a href="{{wallet.get_absolute_url}}">{{wallet.walletname}}</a></td>
     
     <td style="padding:2px">{% if wallet.date %}{{wallet.date}}{% else %} {% endif %}</td>
-    <td style="padding:2px">{{wallet.name}}</td>
+    <td style="padding:2px">{% if wallet.name %}{{wallet.name}}{% else %} {% endif %}</td>
     <td style="padding:2px">{{wallet.persons}}</td>
     
     <td align="center" style="padding:2px"><a href="{{wallet.get_absolute_url}}">{{wallet.singlescan_set.all|length}}</a></td>
diff --git a/templates/personwallets.html b/templates/personwallets.html
index c7ea152..dd1ae20 100644
--- a/templates/personwallets.html
+++ b/templates/personwallets.html
@@ -26,7 +26,7 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c
     <td style="padding:2px"><a href="{{wallet.get_absolute_url}}">{{wallet.walletname}}</a></td>
     
     <td style="padding:2px" >{% if wallet.date %}{{wallet.date}}{% else %} {% endif %}</td>
-    <td style="padding:2px">{{wallet.name}}</td>
+    <td style="padding:2px">{% if wallet.name %}{{wallet.name}}{% else %} {% endif %}</td>
     <td style="padding:2px">{{wallet.persons}}</td>
     <td style="padding:2px">{{wallet.cave}}</td>
     
diff --git a/templates/yearwallets.html b/templates/yearwallets.html
index 40f1379..3036ccc 100644
--- a/templates/yearwallets.html
+++ b/templates/yearwallets.html
@@ -26,7 +26,7 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c
     <td style="padding:2px"><a href="{{wallet.get_absolute_url}}">{{wallet.walletname}}</a></td>
     
     <td style="padding:2px">{% if wallet.date %}{{wallet.date}}{% else %} {% endif %}</td>
-    <td style="padding:2px">{{wallet.name}}</td>
+    <td style="padding:2px">{% if wallet.name %}{{wallet.name}}{% else %} {% endif %}</td>
     <td style="padding:2px">{{wallet.persons}}</td>
     <td style="padding:2px">{{wallet.cave}}</td>