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

This lists all the files in a wallet, some of which may not be for this specific cave. - + {% for wallet in manywallets|dictsort:"walletname" %} +
WalletWallet DateWallet NameScansSurvex blocksSurvex datesDrawings using these scans
WalletWallet DateWallet NamePeopleScansSurvex blocksSurvex datesDrawings using these scans
{{wallet.walletname}} {{wallet.date}} {{wallet.name}}{{wallet.people}} {{wallet.singlescan_set.all|length}}