From 42da24a047471af8865ed9b660d8d819901aeb9c Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 10 Mar 2015 15:22:39 -0500 Subject: [PATCH] Add product UPC to JSON output of 'products.search' view. --- tailbone/views/products.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tailbone/views/products.py b/tailbone/views/products.py index f82f98fe..8d46ae28 100644 --- a/tailbone/views/products.py +++ b/tailbone/views/products.py @@ -355,8 +355,9 @@ def products_search(request): product = None else: product = { - 'uuid': product.uuid, - 'full_description': product.full_description, + 'uuid': product.uuid, + 'upc': unicode(product.upc or ''), + 'full_description': product.full_description, } return {'product': product}