summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/models.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/models.py b/core/models.py
index 1c86dd5..f0ce909 100644
--- a/core/models.py
+++ b/core/models.py
@@ -568,6 +568,12 @@ class Entrance(TroggleModel):
def __unicode__(self):
return unicode(self.slug())
+ def exact_location(self):
+ return SurvexStation.objects.lookup(self.exact_station)
+ def other_location(self):
+ return SurvexStation.objects.lookup(self.other_station)
+
+
def find_location(self):
if self.tag_station:
s = SurvexStation.objects.lookup(self.tag_station)