Add product UPC to JSON output of 'products.search' view.
This commit is contained in:
		
							parent
							
								
									085ce70820
								
							
						
					
					
						commit
						42da24a047
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -355,8 +355,9 @@ def products_search(request): | ||||||
|                 product = None |                 product = None | ||||||
|             else: |             else: | ||||||
|                 product = { |                 product = { | ||||||
|                     'uuid':                 product.uuid, |                     'uuid':                     product.uuid, | ||||||
|                     'full_description':     product.full_description, |                     'upc':                      unicode(product.upc or ''), | ||||||
|  |                     'full_description':         product.full_description, | ||||||
|                     } |                     } | ||||||
|     return {'product': product} |     return {'product': product} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar