diff options
-rw-r--r-- | core/models/survex.py | 4 | ||||
-rw-r--r-- | templates/cavewallets.html | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/core/models/survex.py b/core/models/survex.py index 9746afb..29241f9 100644 --- a/core/models/survex.py +++ b/core/models/survex.py @@ -195,6 +195,10 @@ class Wallet(models.Model): jsondata = self.get_json() return jsondata["date"] + def people(self): + jsondata = self.get_json() + return jsondata["people"] + def name(self): jsondata = self.get_json() return jsondata["name"] diff --git a/templates/cavewallets.html b/templates/cavewallets.html index 509ca9f..49a36e3 100644 --- a/templates/cavewallets.html +++ b/templates/cavewallets.html @@ -12,13 +12,14 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c <p>This lists all the files in a wallet, some of which may not be for this specific cave. <table width=95%> -<tr><th>Wallet</th><th>Wallet Date</th><th>Wallet Name</th><th>Scans</th><th>Survex blocks</th><th>Survex dates</th><th>Drawings using these scans</th></tr> +<tr><th>Wallet</th><th>Wallet Date</th><th>Wallet Name</th><th>People</th><th>Scans</th><th>Survex blocks</th><th>Survex dates</th><th>Drawings using these scans</th></tr> {% for wallet in manywallets|dictsort:"walletname" %} <tr> <td style="padding:2px"><a href="{{wallet.get_absolute_url}}">{{wallet.walletname}}</a></td> <td style="padding:2px">{{wallet.date}}</td> <td style="padding:2px">{{wallet.name}}</td> + <td style="padding:2px">{{wallet.people}}</td> <td align="right" style="padding:2px">{{wallet.singlescan_set.all|length}}</td> <td style="padding:2px"> |