2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 11:21:26 +00:00

update only changed fields optimisation now done

This commit is contained in:
2026-01-28 16:10:30 +00:00
parent 95352a0d18
commit 7b6a066b91
2 changed files with 8 additions and 7 deletions

View File

@@ -329,7 +329,7 @@ class Wallet(models.Model):
return None
else:
self.walletyear = datetime.date(year, 1, 1)
self.save()
self.save(update_fields=["walletdate"])
return str(year)
# Yes this is horribly, horribly inefficient, esp. for a page that have date, people and cave in it