diff --git a/core/views/caves.py b/core/views/caves.py index 795bb18..6bbf627 100644 --- a/core/views/caves.py +++ b/core/views/caves.py @@ -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: