material price should always return a float

This commit is contained in:
Martin
2016-07-10 23:43:31 +02:00
parent 663b07fe47
commit 7e029d9637
+1 -1
View File
@@ -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):