This commit is contained in:
Rad 2019-02-25 23:46:52 +00:00
parent 8173c3c45d
commit 0c63156428
2 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,7 @@ def caveCmp(x, y):
def caveindex(request): def caveindex(request):
caves = Cave.objects.all() caves = Cave.objects.all()
newfield = "testing123" newfield = str("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"))

View File

@ -9,6 +9,9 @@
<p>{{ newfield }}</p> <p>{{ newfield }}</p>
Testing 123, Testing 123
{{ newfield }}
<h3>Notable caves</h3> <h3>Notable caves</h3>
<ul> <ul>
{% for cave in notablecaves %} {% for cave in notablecaves %}