From 7e029d96377fc6c947d6f0df4791b1f0a7b0ba07 Mon Sep 17 00:00:00 2001 From: Martin Date: Sun, 10 Jul 2016 23:43:31 +0200 Subject: [PATCH] material price should always return a float --- api/models/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/models/product.py b/api/models/product.py index 0f8e08a..bfc9f58 100644 --- a/api/models/product.py +++ b/api/models/product.py @@ -38,7 +38,7 @@ class Material(db.Model): @property def price(self): if self.material_price is not None: - return self.material_price.price + return float(self.material_price.price) return None def to_json(self):