convert Decimal instance to str before JSON serialization
This commit is contained in:
parent
a852e6ec4b
commit
68e18398fd
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user