added entrance locations

This commit is contained in:
Martin
2012-08-14 15:08:08 +02:00
parent 8c1882eec8
commit 8e64062214
2 changed files with 8 additions and 2 deletions

View File

@@ -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)