diff options
Diffstat (limited to 'core/models/caves.py')
-rw-r--r-- | core/models/caves.py | 6 |
1 files changed, 3 insertions, 3 deletions
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" |