mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 12:37:10 +00:00
Have entrance coordinates displayed to web pages. (Requires expo web entrance survey points to start with 1623 or 1626)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user