diff options
Diffstat (limited to 'core/views/caves.py')
-rw-r--r-- | core/views/caves.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/views/caves.py b/core/views/caves.py index 41c14ef..7a3818c 100644 --- a/core/views/caves.py +++ b/core/views/caves.py @@ -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}) |