diff options
author | Martin <devnull@localhost> | 2012-08-14 15:08:08 +0200 |
---|---|---|
committer | Martin <devnull@localhost> | 2012-08-14 15:08:08 +0200 |
commit | 8e64062214e1a62bc43a09c137e03efec7d3d45a (patch) | |
tree | f6469157f00924b8c06ea249473fdae352c71f3e /core | |
parent | 8c1882eec817a9b24400303bc7349d149817c7f0 (diff) | |
download | troggle-8e64062214e1a62bc43a09c137e03efec7d3d45a.tar.gz troggle-8e64062214e1a62bc43a09c137e03efec7d3d45a.tar.bz2 troggle-8e64062214e1a62bc43a09c137e03efec7d3d45a.zip |
added entrance locations
Diffstat (limited to 'core')
-rw-r--r-- | core/models.py | 6 |
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) |