2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-18 05:07:07 +00:00

delete: never implemented properly

This commit is contained in:
Philip Sargent
2021-04-27 14:50:26 +01:00
parent e236e792ec
commit 81d58f1275
3 changed files with 0 additions and 20 deletions

View File

@@ -302,13 +302,6 @@ def caveQMs(request, slug):
else:
return render(request,'cave_qms.html', {'cave': cave})
def caveLogbook(request, slug):
cave = Cave.objects.get(caveslug__slug = slug)
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_logbook.html', {'cave': cave})
@login_required_if_public
def edit_cave(request, slug=None):
'''This is the form that edits all the cave data and writes out an XML file in the :expoweb: repo folder