forked from expo/troggle
This commit is contained in:
parent
29c53f35ab
commit
0a214c5d4b
@ -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()
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user