summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2021-11-06 22:59:10 +0200
committerPhilip Sargent <philip.sargent@gmail.com>2021-11-06 22:59:10 +0200
commit73ffb509f79a6f623ba9c82be17c907cbcdf7afb (patch)
tree241b3f6625b5865347e3bdfa1773a4f168547b99 /core
parent5723f57fc51804e2b31d8b86705a97506bf6cee2 (diff)
downloadtroggle-73ffb509f79a6f623ba9c82be17c907cbcdf7afb.tar.gz
troggle-73ffb509f79a6f623ba9c82be17c907cbcdf7afb.tar.bz2
troggle-73ffb509f79a6f623ba9c82be17c907cbcdf7afb.zip
CaveView status is now documented
Diffstat (limited to 'core')
-rw-r--r--core/views/caves.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/views/caves.py b/core/views/caves.py
index 97f06cc..5fb070d 100644
--- a/core/views/caves.py
+++ b/core/views/caves.py
@@ -219,9 +219,9 @@ def rendercave(request, cave, slug, cave_id=''):
# NOTE the template itself loads the 3d file using javascript before it loads anything else.
# Django cannot see what this javascript is doing, so we need to ensure that the 3d file exists first.
- # run this just for the side-effect of generating the 3d file? Nope, crashes.
- # TO DO - restructure this so that the regeneration is callable from here.
- #discard_response = cave3d(request, cave_id=cave_id)
+ # So only do this render if a valid .3d file exists. TO BE DONE
+ # see design docum in troggle/templates/cave.html
+ # see rendercave() in troggle/core/views/caves.py
templatefile = 'cave.html'
if request.user.is_authenticated:
editable = True