wallets per person - slow implementation

This commit is contained in:
Philip Sargent
2022-07-31 18:58:46 +03:00
parent c1ba6a39a5
commit a2a5e9200e
9 changed files with 130 additions and 17 deletions

View File

@@ -203,18 +203,26 @@ class Wallet(models.Model):
# Yes this is horribly, horribly inefficient, esp. for a page that have date, people and cave in it
def date(self):
if not self.get_json():
return None
jsondata = self.get_json()
return jsondata["date"]
def people(self):
if not self.get_json():
return None
jsondata = self.get_json()
return jsondata["people"]
def cave(self):
if not self.get_json():
return None
jsondata = self.get_json()
return jsondata["cave"]
def name(self):
if not self.get_json():
return None
jsondata = self.get_json()
return jsondata["name"]