summaryrefslogtreecommitdiffstats
path: root/core/views/scans.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2022-10-15 21:28:56 +0300
committerPhilip Sargent <philip.sargent@klebos.com>2022-10-15 21:28:56 +0300
commit830150ade6be82091d0fcfca9a91c7cb363a6fdc (patch)
tree1c466d83fa2d06b295ea9576f05eb18772a827ae /core/views/scans.py
parent55ac98ebe1b1898583309434475c25a73815066b (diff)
downloadtroggle-830150ade6be82091d0fcfca9a91c7cb363a6fdc.tar.gz
troggle-830150ade6be82091d0fcfca9a91c7cb363a6fdc.tar.bz2
troggle-830150ade6be82091d0fcfca9a91c7cb363a6fdc.zip
Making page templates autoadjust to the current year
Diffstat (limited to 'core/views/scans.py')
-rw-r--r--core/views/scans.py7
1 files changed, 4 insertions, 3 deletions
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):