From 25a73c4ab7a23d87621c0d90b9c26c69361e8a6a Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 14 Aug 2012 22:51:15 +0200 Subject: Bug fixing of cave and entrance forms removal of slugs --- core/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/models.py') 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 -- cgit v1.2.3