forked from expo/troggle
This commit is contained in:
parent
b6ad46a37f
commit
da55e1519e
@ -51,14 +51,13 @@ def caveCmp(x, y):
|
|||||||
|
|
||||||
def caveindex(request):
|
def caveindex(request):
|
||||||
caves = Cave.objects.all()
|
caves = Cave.objects.all()
|
||||||
newfield = "testing123"
|
|
||||||
notablecavehrefs = settings.NOTABLECAVESHREFS
|
notablecavehrefs = settings.NOTABLECAVESHREFS
|
||||||
notablecaves = [Cave.objects.get(kataster_number=kataster_number) for kataster_number in notablecavehrefs ]
|
notablecaves = [Cave.objects.get(kataster_number=kataster_number) for kataster_number in notablecavehrefs ]
|
||||||
caves1623 = list(Cave.objects.filter(area__short_name = "1623"))
|
caves1623 = list(Cave.objects.filter(area__short_name = "1623"))
|
||||||
caves1626 = list(Cave.objects.filter(area__short_name = "1626"))
|
caves1626 = list(Cave.objects.filter(area__short_name = "1626"))
|
||||||
caves1623.sort(caveCmp)
|
caves1623.sort(caveCmp)
|
||||||
caves1626.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):
|
def millenialcaves(request):
|
||||||
caves = Cave.objects.all()
|
caves = Cave.objects.all()
|
||||||
|
@ -7,13 +7,6 @@
|
|||||||
|
|
||||||
<h1>Cave Index</h1>
|
<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>
|
<h3>Notable caves</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
<h1>Cave Index</h1>
|
<h1>Cave Index</h1>
|
||||||
|
|
||||||
|
|
||||||
|
123 testing 123 testing
|
||||||
|
|
||||||
<h3>Notable caves</h3>
|
<h3>Notable caves</h3>
|
||||||
<ul>
|
<ul>
|
||||||
{% for cave in notablecaves %}
|
{% for cave in notablecaves %}
|
||||||
|
Loading…
Reference in New Issue
Block a user