From 9712bf6dfdde8800072288c86544a74bc178a945 Mon Sep 17 00:00:00 2001 From: Rad Date: Tue, 26 Feb 2019 02:01:09 +0000 Subject: [PATCH] Messing with millenialcaves.html or similar --- core/views_caves.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/views_caves.py b/core/views_caves.py index b3f6f35..2684651 100644 --- a/core/views_caves.py +++ b/core/views_caves.py @@ -62,8 +62,14 @@ def caveindex(request): def millenialcaves(request): #RW messing around area - return None - return HttpResponse("blurrnsngsl.", content_type="text/plain") + 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,'caveindex.html', {'caves1623': caves1623, 'caves1626': caves1626, 'notablecaves':notablecaves, 'cavepage': True})