summaryrefslogtreecommitdiffstats
path: root/core/models.py
diff options
context:
space:
mode:
authorMartin <devnull@localhost>2012-08-14 22:51:15 +0200
committerMartin <devnull@localhost>2012-08-14 22:51:15 +0200
commit25a73c4ab7a23d87621c0d90b9c26c69361e8a6a (patch)
tree6290339cc911e049d74bd061b6f9f810482af15e /core/models.py
parent28047277f1fb0679c3b94bb5a14d2384a94cc27f (diff)
downloadtroggle-25a73c4ab7a23d87621c0d90b9c26c69361e8a6a.tar.gz
troggle-25a73c4ab7a23d87621c0d90b9c26c69361e8a6a.tar.bz2
troggle-25a73c4ab7a23d87621c0d90b9c26c69361e8a6a.zip
Bug fixing of cave and entrance forms removal of slugs
Diffstat (limited to 'core/models.py')
-rw-r--r--core/models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/models.py b/core/models.py
index 1c86dd5..180ac9d 100644
--- a/core/models.py
+++ b/core/models.py
@@ -571,13 +571,13 @@ class Entrance(TroggleModel):
def find_location(self):
if self.tag_station:
s = SurvexStation.objects.lookup(self.tag_station)
- return "%sE %sN %sAlt" % (s.x, s.y, s.z)
+ return "%0.0fE %0.0fN %0.0fAlt" % (s.x, s.y, s.z)
if self.exact_station:
s = SurvexStation.objects.lookup(self.exact_station)
- return "%sE %sN %sAlt" % (s.x, s.y, s.z)
+ return "%0.0fE %0.0fN %0.0fAlt" % (s.x, s.y, s.z)
if self.other_station:
s = SurvexStation.objects.lookup(self.other_station)
- return "%sE %sN %sAlt %s" % (s.x, s.y, s.z, self.other_description)
+ return "%0.0fE %0.0fN %0.0fAlt %s" % (s.x, s.y, s.z, self.other_description)
if self.bearings:
return self.bearings