summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRad <radost.waszkiewicz@gmail.com>2019-02-26 00:00:34 +0000
committerRad <radost.waszkiewicz@gmail.com>2019-02-26 00:00:34 +0000
commitda55e1519e3bf943acfb9b8bfe3402f64a929138 (patch)
tree6cb046523b5988484c58e32780c258bad516add4
parentb6ad46a37f6ee7e361d604ffcbd84a211c47e8a8 (diff)
downloadtroggle-da55e1519e3bf943acfb9b8bfe3402f64a929138.tar.gz
troggle-da55e1519e3bf943acfb9b8bfe3402f64a929138.tar.bz2
troggle-da55e1519e3bf943acfb9b8bfe3402f64a929138.zip
-rw-r--r--core/views_caves.py3
-rw-r--r--templates/caveindex.html7
-rw-r--r--templates/millenialcaves.html3
3 files changed, 4 insertions, 9 deletions
diff --git a/core/views_caves.py b/core/views_caves.py
index f57a9f9..f8420d7 100644
--- a/core/views_caves.py
+++ b/core/views_caves.py
@@ -51,14 +51,13 @@ def caveCmp(x, y):
def caveindex(request):
caves = Cave.objects.all()
- newfield = "testing123"
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', {'newfield': notablecaves, 'caves1623': caves1623, 'caves1626': caves1626, 'notablecaves':notablecaves, 'cavepage': True})
+ return render_with_context(request,'caveindex.html', {'caves1623': caves1623, 'caves1626': caves1626, 'notablecaves':notablecaves, 'cavepage': True})
def millenialcaves(request):
caves = Cave.objects.all()
diff --git a/templates/caveindex.html b/templates/caveindex.html
index f91604a..be53ae3 100644
--- a/templates/caveindex.html
+++ b/templates/caveindex.html
@@ -7,13 +7,6 @@
<h1>Cave Index</h1>
-<p>{{ newfield }}</p>
-
-Testing 123, Testing 123
-{% for cave in newfield %}
- {{ cave.url }}<br>
-{% endfor %}
-Testing 123
<h3>Notable caves</h3>
<ul>
diff --git a/templates/millenialcaves.html b/templates/millenialcaves.html
index 7bc5942..58ddad7 100644
--- a/templates/millenialcaves.html
+++ b/templates/millenialcaves.html
@@ -7,6 +7,9 @@
<h1>Cave Index</h1>
+
+123 testing 123 testing
+
<h3>Notable caves</h3>
<ul>
{% for cave in notablecaves %}