From 4a7c14f8dc7977e57af73d79e708b66d1857047f Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 27 Jul 2023 14:40:52 +0300 Subject: remove unused page --- core/views/caves.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'core/views/caves.py') diff --git a/core/views/caves.py b/core/views/caves.py index 1dbb1e9..a4e3cb1 100644 --- a/core/views/caves.py +++ b/core/views/caves.py @@ -341,19 +341,6 @@ def cavepage(request, karea, subpath): # anything else is a new problem. Add in specific error messages here as we discover new types of error raise - -def caveEntrance(request, slug): - try: - cave = Cave.objects.get(caveslug__slug=slug) - except: - return render(request, "errors/badslug.html", {"badslug": f"{slug} - from caveEntrance()"}) - - if cave.non_public and settings.PUBLIC_SITE and not request.user.is_authenticated: - return render(request, "nonpublic.html", {"instance": cave}) - else: - return render(request, "cave_entrances.html", {"cave": cave}) - - @login_required_if_public def edit_cave(request, path="", slug=None): """This is the form that edits all the cave data and writes out an XML file in the :expoweb: repo folder -- cgit v1.2.3