convert Decimal instance to str before JSON serialization

This commit is contained in:
Sanj 2012-02-19 17:39:07 +05:30
parent a852e6ec4b
commit 68e18398fd

View File

@ -164,7 +164,7 @@ class Route(models.Model):
'code': self.code,
'alias': self.alias,
'slug': self.slug,
'distance': self.distance
'distance': str(self.distance)
}
class RouteDetail(models.Model):