summaryrefslogtreecommitdiffstats
path: root/core/models.py
diff options
context:
space:
mode:
authorMartin <devnull@localhost>2012-08-14 23:49:26 +0200
committerMartin <devnull@localhost>2012-08-14 23:49:26 +0200
commitcfc90deb837002f1e811d0112c314bcce4919ff6 (patch)
tree8a9215be364dae7535dcb1bcc85e5a85005fa16b /core/models.py
parenta05fe94d90f3fe81e0cec79558d3a47ab0ead827 (diff)
parent1a0e5776069b654796fc9fb9910db491b67fe152 (diff)
downloadtroggle-cfc90deb837002f1e811d0112c314bcce4919ff6.tar.gz
troggle-cfc90deb837002f1e811d0112c314bcce4919ff6.tar.bz2
troggle-cfc90deb837002f1e811d0112c314bcce4919ff6.zip
Merge
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 f0ce909..e064814 100644
--- a/core/models.py
+++ b/core/models.py
@@ -577,13 +577,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