From 2bd2094f63ed15795879fc0d14fafe1c360d6bdb Mon Sep 17 00:00:00 2001 From: Martin Date: Sat, 19 Nov 2016 17:15:23 +0100 Subject: [PATCH] rename material_price to m2_price --- api/resources/prices.py | 2 +- docs/prices.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/resources/prices.py b/api/resources/prices.py index 3407716..ff3b984 100644 --- a/api/resources/prices.py +++ b/api/resources/prices.py @@ -36,7 +36,7 @@ def wallpaper(): data.append({ 'material': material.name, '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), }) diff --git a/docs/prices.md b/docs/prices.md index 33b5f78..ddcce80 100644 --- a/docs/prices.md +++ b/docs/prices.md @@ -25,13 +25,13 @@ Sample response { "material": "standard-wallpaper", "material_id": 1, - "material_price": 295, + "m2_price": 295, "price": 1180 }, { "material": "premium-wallpaper", "material_id": 4, - "material_price": 325, + "m2_price": 325, "price": 1300 } ]