summaryrefslogtreecommitdiffstats
path: root/core/views_caves.py
diff options
context:
space:
mode:
authorRad <radost.waszkiewicz@gmail.com>2019-02-28 18:46:40 +0000
committerRad <radost.waszkiewicz@gmail.com>2019-02-28 18:46:40 +0000
commit9a7a1728a44168e3d113edfa500893474343ec80 (patch)
tree91d65f02c9fc2356be2be52b70d71d7f2003263e /core/views_caves.py
parent240c7eff100cbcfa5e4d777fe4f823a777b7d4a4 (diff)
downloadtroggle-RW_rebuild.tar.gz
troggle-RW_rebuild.tar.bz2
troggle-RW_rebuild.zip
working maps: cave -> desc, survey -> cave, expedition -> person. Added /millnialpeople/ page.RW_rebuild
Diffstat (limited to 'core/views_caves.py')
-rw-r--r--core/views_caves.py19
1 files changed, 18 insertions, 1 deletions
diff --git a/core/views_caves.py b/core/views_caves.py
index 302003d..170ef17 100644
--- a/core/views_caves.py
+++ b/core/views_caves.py
@@ -1,7 +1,7 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
-from troggle.core.models import CaveSlug, Cave, CaveAndEntrance, Survey, Expedition, QM, CaveDescription, EntranceSlug, Entrance, Area, SurvexStation, CaveM, Cave_descriptionM
+from troggle.core.models import CaveSlug, Cave, CaveAndEntrance, Survey, Expedition, QM, CaveDescription, EntranceSlug, Entrance, Area, SurvexStation
from troggle.core.forms import CaveForm, CaveAndEntranceFormSet, VersionControlCommentForm, EntranceForm, EntranceLetterForm
import troggle.core.models as models
import troggle.settings as settings
@@ -21,6 +21,13 @@ import settings
from PIL import Image, ImageDraw, ImageFont
import string, os, sys, subprocess
+#
+# NEW CONTENT
+#
+
+
+from troggle.core.models import CaveM, Cave_descriptionM, ExpeditionM
+
def millenialcaves(request):
#RW messing around area
caves = CaveM.objects.all()
@@ -31,6 +38,16 @@ def millenialdescription(request, slug):
desc = Cave_descriptionM.objects.get(slug=slug)
return render_with_context(request,'cave_uground_description.html', {'cave': desc})
+def millenialpeople(request):
+ expos = ExpeditionM.objects.all()
+ return render_with_context(request,'peoplemillenial.html' , {'expos': expos})
+
+
+#
+# END NEW CONTENT
+#
+
+
def getCave(cave_id):
"""Returns a cave object when given a cave name or number. It is used by views including cavehref, ent, and qm."""