diff --git a/core/views/caves.py b/core/views/caves.py
index e8db57744..cdac66dc7 100644
--- a/core/views/caves.py
+++ b/core/views/caves.py
@@ -125,7 +125,12 @@ def getnotablecaves():
def caveindex(request):
-
+ #allcaves = Cave.objects.all()
+ allcaves = Cave.objects.filter(areacode="1626") # testing with subset
+ for c in allcaves:
+ if c.entrances:
+ pass
+
caves1623 = list(Cave.objects.filter(areacode="1623"))
caves1626 = list(Cave.objects.filter(areacode="1626"))
caves1627 = list(Cave.objects.filter(areacode="1627"))
diff --git a/templates/caveindex.html b/templates/caveindex.html
index 682815945..510e02d98 100644
--- a/templates/caveindex.html
+++ b/templates/caveindex.html
@@ -23,8 +23,10 @@
{% endfor %}
-Red star * against a name indicates that no survex file is explicitly associated with the cave (but there might be a *fix somewhere)
-
+Red star * against a name indicates that no survex file is explicitly associated with the cave (but there might be a *fix somewhere)
+Orange triangle ▲ against a name indicates that the cave has no Entrance.
+
+
1623
@@ -37,7 +39,10 @@ Red star * against a name indicates that no surv
{% endif %}
{% else %}
{{cave.unofficial_number }} {{cave.official_name|safe}}
- {% endif %}{% if cave.survex_file %}{% else %}*{% endif %}
+ {% endif %}
+ {% if cave.survex_file %}{% else %}*{% endif %}
+ {% if cave.entrances %}{% else %}▲{% endif %}
+
{% endfor %}
@@ -52,7 +57,10 @@ Red star
* against a name indicates that no surv
@@ -67,7 +75,10 @@ Red star
* against a name indicates that no surv