summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/views_caves.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/views_caves.py b/core/views_caves.py
index ecf26d5..f8420d7 100644
--- a/core/views_caves.py
+++ b/core/views_caves.py
@@ -59,6 +59,17 @@ def caveindex(request):
caves1626.sort(caveCmp)
return render_with_context(request,'caveindex.html', {'caves1623': caves1623, 'caves1626': caves1626, 'notablecaves':notablecaves, 'cavepage': True})
+def millenialcaves(request):
+ caves = Cave.objects.all()
+ notablecavehrefs = settings.NOTABLECAVESHREFS
+ notablecaves = [Cave.objects.get(kataster_number=kataster_number) for kataster_number in notablecavehrefs ]
+ caves1623 = list(Cave.objects.filter(area__short_name = "1623"))
+ caves1626 = list(Cave.objects.filter(area__short_name = "1626"))
+ caves1623.sort(caveCmp)
+ caves1626.sort(caveCmp)
+ return render_with_context(request,'millenialcaves.html', {'caves1623': caves1623, 'caves1626': caves1626, 'notablecaves':notablecaves, 'cavepage': True})
+
+
def cave3d(request, cave_id=''):
cave = getCave(cave_id)
survexfilename = settings.SURVEX_DATA + cave.survex_file