2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 12:27:35 +00:00

QM check-box report for open leads

This commit is contained in:
2023-04-05 23:13:12 +01:00
parent 2541766dd5
commit d3d983eedb
3 changed files with 68 additions and 1 deletions

View File

@@ -500,7 +500,7 @@ def get_entrances(request, caveslug):
)
def caveQMs(request, slug):
def caveQMs(request, slug, open=False):
"""Lists all the QMs on a particular cave
relies on the template to find all the QMs for the cave specified in the slug, e.g. '1623-161'
Now working in July 2022
@@ -512,6 +512,8 @@ def caveQMs(request, slug):
if cave.non_public and settings.PUBLIC_SITE and not request.user.is_authenticated:
return render(request, "nonpublic.html", {"instance": cave})
elif open:
return render(request, "cave_open_qms.html", {"cave": cave})
else:
return render(request, "cave_qms.html", {"cave": cave})