diff options
Diffstat (limited to 'core/views/caves.py')
-rw-r--r-- | core/views/caves.py | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/core/views/caves.py b/core/views/caves.py index 7706315..2bb2794 100644 --- a/core/views/caves.py +++ b/core/views/caves.py @@ -444,17 +444,21 @@ def ent(request, cave_id, ent_letter): 'entrance': cave_and_ent.entrance, 'letter': cave_and_ent.entrance_letter,}) -def entranceSlug(request, slug): - entrance = Entrance.objects.get(entranceslug__slug = slug) - if entrance.non_public and not request.user.is_authenticated: - return render(request,'nonpublic.html', {'instance': entrance}) - else: - return render(request,'entranceslug.html', {'entrance': entrance}) - -def surveyindex(request): - surveys=Survey.objects.all() - expeditions=Expedition.objects.order_by("-year") - return render(request,'survey.html',locals()) +# def entranceSlug(request, slug): + # '''This seems to be a fossil, but I am not sure... + # ''' + # entrance = Entrance.objects.get(entranceslug__slug = slug) + # if entrance.non_public and not request.user.is_authenticated: + # return render(request,'nonpublic.html', {'instance': entrance}) + # else: + # return render(request,'entranceslug.html', {'entrance': entrance}) + +# def surveyindex(request): + # '''The template does not exist, there is no URL which calls this, so it is a fossil + # ''' + # surveys=Survey.objects.all() + # expeditions=Expedition.objects.order_by("-year") + # return render(request,'survey.html',locals()) def get_entrances(request, caveslug): try: |