2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-21 23:01:52 +00:00
This commit is contained in:
Philip Sargent 2024-07-16 18:13:07 +02:00
parent 5b23b2df8a
commit a6ca40becd

View File

@ -784,7 +784,7 @@ def caveQMs(request, slug, open=False):
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
"""
if not (cave:= get_cave_from_slug(caveslug)): # walrus operator
if not (cave:= get_cave_from_slug(slug)): # walrus operator
return render(request, "errors/badslug.html", {"badslug": f"{slug} - from caveQMs()"})
if cave.non_public and settings.PUBLIC_SITE and not request.user.is_authenticated: