2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 08:41:51 +00:00

adding people

This commit is contained in:
Philip Sargent 2022-07-28 02:37:44 +03:00
parent fea69c0371
commit 9a461c31a8
2 changed files with 6 additions and 1 deletions

View File

@ -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"]

View File

@ -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">