diff options
author | Martin <devnull@localhost> | 2012-08-14 23:49:26 +0200 |
---|---|---|
committer | Martin <devnull@localhost> | 2012-08-14 23:49:26 +0200 |
commit | 71289d9b0fb4046326c2c70e034aa78ac2cd1b97 (patch) | |
tree | 03dca96408af1b8e494ac7409a6df5bff0bcd0ea /core/models.py | |
parent | a4f9f5bb5a2c1453e96778f898ec150fde5ff56e (diff) | |
parent | 25a73c4ab7a23d87621c0d90b9c26c69361e8a6a (diff) | |
download | troggle-71289d9b0fb4046326c2c70e034aa78ac2cd1b97.tar.gz troggle-71289d9b0fb4046326c2c70e034aa78ac2cd1b97.tar.bz2 troggle-71289d9b0fb4046326c2c70e034aa78ac2cd1b97.zip |
Merge
Diffstat (limited to 'core/models.py')
-rw-r--r-- | core/models.py | 6 |
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 |