summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRad <radost.waszkiewicz@gmail.com>2019-02-25 23:55:06 +0000
committerRad <radost.waszkiewicz@gmail.com>2019-02-25 23:55:06 +0000
commit4c3d0ce7fa8b2516411bd09918b05212a68a0b05 (patch)
tree3030904bef598e852e451a56e9107eca24eb4ba4
parenta99afe07c6248a4dbc3c84f6f8c6fab0c08e9db9 (diff)
downloadtroggle-4c3d0ce7fa8b2516411bd09918b05212a68a0b05.tar.gz
troggle-4c3d0ce7fa8b2516411bd09918b05212a68a0b05.tar.bz2
troggle-4c3d0ce7fa8b2516411bd09918b05212a68a0b05.zip
-rw-r--r--core/views_caves.py2
-rw-r--r--templates/caveindex.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/views_caves.py b/core/views_caves.py
index 24aff3a..f57a9f9 100644
--- a/core/views_caves.py
+++ b/core/views_caves.py
@@ -58,7 +58,7 @@ def caveindex(request):
caves1626 = list(Cave.objects.filter(area__short_name = "1626"))
caves1623.sort(caveCmp)
caves1626.sort(caveCmp)
- return render_with_context(request,'caveindex.html', {'newfield': caves1623, 'caves1623': caves1623, 'caves1626': caves1626, 'notablecaves':notablecaves, 'cavepage': True})
+ return render_with_context(request,'caveindex.html', {'newfield': notablecaves, '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 97b7768..f91604a 100644
--- a/templates/caveindex.html
+++ b/templates/caveindex.html
@@ -10,7 +10,7 @@
<p>{{ newfield }}</p>
Testing 123, Testing 123
-{% for cave in notablecaves %}
+{% for cave in newfield %}
{{ cave.url }}<br>
{% endfor %}
Testing 123