From ed9f7b03bfdff0c7198ee5802a95d704e8deaabe Mon Sep 17 00:00:00 2001 From: Martin Green Date: Sun, 30 Apr 2023 00:57:54 +0100 Subject: Have entrance coordinates displayed to web pages. (Requires expo web entrance survey points to start with 1623 or 1626) --- core/models/caves.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/models/caves.py') 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" -- cgit v1.2.3