diff options
author | Rad <radost.waszkiewicz@gmail.com> | 2019-02-25 23:51:26 +0000 |
---|---|---|
committer | Rad <radost.waszkiewicz@gmail.com> | 2019-02-25 23:51:26 +0000 |
commit | a013f5bef2d160d79bbf42df869b1935729b2e9d (patch) | |
tree | bff56690d9ecc4151a2d9f423e1a280864ffa511 | |
parent | 75acd74d5b23af6f90921793283aede57b5c1e89 (diff) | |
download | troggle-a013f5bef2d160d79bbf42df869b1935729b2e9d.tar.gz troggle-a013f5bef2d160d79bbf42df869b1935729b2e9d.tar.bz2 troggle-a013f5bef2d160d79bbf42df869b1935729b2e9d.zip |
-rw-r--r-- | core/views_caves.py | 4 | ||||
-rw-r--r-- | templates/caveindex.html | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/core/views_caves.py b/core/views_caves.py index c3ed0b1..24aff3a 100644 --- a/core/views_caves.py +++ b/core/views_caves.py @@ -51,14 +51,14 @@ def caveCmp(x, y): def caveindex(request): caves = Cave.objects.all() - newfield = str("testing123") + 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': newfield, 'caves1623': caves1623, 'caves1626': caves1626, 'notablecaves':notablecaves, 'cavepage': True}) + return render_with_context(request,'caveindex.html', {'newfield': caves1623, '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 6b1f593..d5d2a3d 100644 --- a/templates/caveindex.html +++ b/templates/caveindex.html @@ -10,7 +10,10 @@ <p>{{ newfield }}</p> Testing 123, Testing 123 -{{ newfield }} +{% for cave in newfield %} +bla +{% endfor %} +Testing 123 <h3>Notable caves</h3> <ul> |