diff --git a/core/models/caves.py b/core/models/caves.py
index 95cbeec..1155f81 100644
--- a/core/models/caves.py
+++ b/core/models/caves.py
@@ -306,10 +306,10 @@ class Entrance(TroggleModel):
return str(self.slug)
def exact_location(self):
- return SurvexStation.objects.lookup(self.exact_station)
+ return SurvexStation.objects.get(name = self.exact_station)
def other_location(self):
- return SurvexStation.objects.lookup(self.other_station)
+ return SurvexStation.objects.get(name = self.other_station)
def find_location(self):
r = {"": "To be entered ", "?": "To be confirmed:", "S": "", "L": "Lost:", "R": "Refindable:"}[self.findability]
@@ -370,7 +370,7 @@ class Entrance(TroggleModel):
return f[1]
def tag(self):
- return SurvexStation.objects.lookup(self.tag_station)
+ return SurvexStation.objects.get(name = self.tag_station)
def needs_surface_work(self):
return self.findability != "S" or not self.has_photo or self.marking != "T"
diff --git a/templates/cave.html b/templates/cave.html
index 8d6ea7e..41b292a 100644
--- a/templates/cave.html
+++ b/templates/cave.html
@@ -159,22 +159,22 @@
Explorers{{ ent.entrance.explorers|safe }}
{% endif %}
{% if ent.entrance.northing %}
- Location{{ ent.entrance.northing|safe }}, {{ ent.entrance.easting|safe }}, {{ ent.entrance.alt|safe }}m
+ Location?BMN? Northing: {{ ent.entrance.northing|safe }}, Easting: {{ ent.entrance.easting|safe }}, {{ ent.entrance.alt|safe }}m
{% endif %}
{% if ent.entrance.tag_station %}
- Tag Location{{ ent.entrance.tag_station }} {{ ent.entrance.tag.y|safe }}, {{ ent.entrance.tag.x|safe }}, {{ ent.entrance.tag.z|safe }}m
+ Tag Location{{ ent.entrance.tag_station }} UTM33 {{ ent.entrance.tag.y|floatformat:0 }}, {{ ent.entrance.tag.x|floatformat:0 }}, {{ ent.entrance.tag.z|floatformat:0 }}m
{% endif %}
{% if ent.entrance.bearings %}
Bearings{{ ent.entrance.bearings|safe }}
{% endif %}
{% if ent.entrance.exact_station %}
- Exact Station{{ ent.entrance.exact_station|safe }} {{ ent.entrance.exact_location.y|safe }}, {{ ent.entrance.exact_location.x|safe }}, {{ ent.entrance.exact_location.z|safe }}m
+ Exact Station{{ ent.entrance.exact_station|safe }} UTM33 {{ ent.entrance.exact_location.y|floatformat:0 }}, {{ ent.entrance.exact_location.x|floatformat:0 }}, {{ ent.entrance.exact_location.z|floatformat:0 }}m
{% endif %}
{% if ent.entrance.other_station %}
Other Station{{ ent.entrance.other_station|safe }}
{% if ent.entrance.other_description %}
- {{ ent.entrance.other_description|safe }}
- {% endif %} {{ ent.entrance.other_location.y|safe }}, {{ ent.entrance.other_location.x|safe }}, {{ ent.entrance.other_location.z|safe }}m
+ {% endif %} UTM33 {{ ent.entrance.other_location.y|floatformat:0 }}, {{ ent.entrance.other_location.x|floatformat:0 }}, {{ ent.entrance.other_location.z|floatformat:0 }}m
{% endif %}