remove survexblock webpage - redundant

This commit is contained in:
Philip Sargent
2021-03-26 21:19:31 +00:00
parent ec83c1ff12
commit dba0fd8b20
4 changed files with 7 additions and 58 deletions

View File

@@ -277,14 +277,6 @@ def entranceSlug(request, slug):
else:
return render(request,'entranceslug.html', {'entrance': entrance})
def survexblock(request, survexpath):
survexpath = re.sub("/", ".", survexpath)
print("jjjjjj", survexpath)
survexblock = models.SurvexBlock.objects.get(survexpath=survexpath)
#ftext = survexblock.filecontents()
ftext = survexblock.text
return render(request,'survexblock.html', {'survexblock':survexblock, 'ftext':ftext, })
def surveyindex(request):
surveys=Survey.objects.all()
expeditions=Expedition.objects.order_by("-year")