From 830150ade6be82091d0fcfca9a91c7cb363a6fdc Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 15 Oct 2022 21:28:56 +0300 Subject: Making page templates autoadjust to the current year --- core/views/scans.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'core/views/scans.py') diff --git a/core/views/scans.py b/core/views/scans.py index 38f1ed8..af26c47 100644 --- a/core/views/scans.py +++ b/core/views/scans.py @@ -152,8 +152,8 @@ def walletslistperson(request, first_name, last_name): return render(request, 'errors/generic.html', {'message': f'Unrecognised name of a expo person: "{first_name} {last_name}"'}) manywallets = tickspersonwallet(p) - - return render(request, 'personwallets.html', { 'manywallets':manywallets, 'settings': settings, 'person': p}) + expeditions = Expedition.objects.all() + return render(request, 'personwallets.html', { 'manywallets':manywallets, 'settings': settings, 'person': p, 'expeditions': expeditions}) def walletslistyear(request, year): @@ -223,7 +223,8 @@ def cavewallets(request, caveid): fillblankothers(w) w.ticks = w.get_ticks() # the complaints in colour form, from the json file on disc fixsurvextick(w, w.ticks) - return render(request, 'cavewallets.html', { 'manywallets':manywallets, 'settings': settings, 'cave': cave}) + expeditions = Expedition.objects.all() + return render(request, 'cavewallets.html', { 'manywallets':manywallets, 'settings': settings, 'cave': cave, 'expeditions': expeditions}) def oldwallet(request, path): -- cgit v1.2.3