From 8e64062214e1a62bc43a09c137e03efec7d3d45a Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 14 Aug 2012 15:08:08 +0200 Subject: added entrance locations --- core/models.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/models.py') 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) -- cgit v1.2.3