diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2022-12-29 15:07:58 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2022-12-29 15:07:58 +0000 |
commit | 1ab7528f7b27aabae52dff7727030929f3c3649d (patch) | |
tree | 17c29fb5f4920875915c197dd1be5f8f891f09dd /core | |
parent | de74cd486789231eff374c9d6bef828f54e715b9 (diff) | |
download | troggle-1ab7528f7b27aabae52dff7727030929f3c3649d.tar.gz troggle-1ab7528f7b27aabae52dff7727030929f3c3649d.tar.bz2 troggle-1ab7528f7b27aabae52dff7727030929f3c3649d.zip |
Clean up unused templates. All checked.
Diffstat (limited to 'core')
-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: |