rename material_price to m2_price

This commit is contained in:
Martin
2016-11-19 17:15:23 +01:00
parent e5b6edc7ca
commit 2bd2094f63
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ def wallpaper():
data.append({ data.append({
'material': material.name, 'material': material.name,
'material_id': material.id, 'material_id': material.id,
'material_price': m2_price(material, market, reseller=reseller, inc_vat=True), 'm2_price': m2_price(material, market, reseller=reseller, inc_vat=True),
'price': wallpaper_price(width, height, material, market, reseller=reseller), 'price': wallpaper_price(width, height, material, market, reseller=reseller),
}) })
+2 -2
View File
@@ -25,13 +25,13 @@ Sample response
{ {
"material": "standard-wallpaper", "material": "standard-wallpaper",
"material_id": 1, "material_id": 1,
"material_price": 295, "m2_price": 295,
"price": 1180 "price": 1180
}, },
{ {
"material": "premium-wallpaper", "material": "premium-wallpaper",
"material_id": 4, "material_id": 4,
"material_price": 325, "m2_price": 325,
"price": 1300 "price": 1300
} }
] ]