Skip to content

Commit

Permalink
Merge pull request #119 from django-oscar/bug/why-you-no-upc
Browse files Browse the repository at this point in the history
it is kinda stupid not to include upc in the product detail page.
  • Loading branch information
Martijn Jacobs committed Jan 18, 2018
2 parents dbed955 + f0f41b0 commit 5a247e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions oscarapi/serializers/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class Meta(BaseProductSerializer.Meta):
fields = overridable(
'OSCARAPI_CHILDPRODUCTDETAIL_FIELDS',
default=(
'url', 'id', 'title', 'structure',
'url', 'upc', 'id', 'title', 'structure',
# 'parent', 'description', 'images', are not included by default, but
# easily enabled by overriding OSCARAPI_CHILDPRODUCTDETAIL_FIELDS
# in your settings file
Expand All @@ -153,7 +153,7 @@ class Meta(BaseProductSerializer.Meta):
fields = overridable(
'OSCARAPI_PRODUCTDETAIL_FIELDS',
default=(
'url', 'id', 'title', 'description', 'structure',
'url', 'upc', 'id', 'title', 'description', 'structure',
'date_created', 'date_updated', 'recommended_products',
'attributes', 'categories', 'product_class',
'stockrecords', 'images', 'price', 'availability', 'options',
Expand All @@ -164,7 +164,7 @@ class ProductLinkSerializer(ProductSerializer):
class Meta(BaseProductSerializer.Meta):
fields = overridable(
'OSCARAPI_PRODUCT_FIELDS', default=(
'url', 'id', 'title'
'url', 'id', 'upc', 'title'
))


Expand Down

0 comments on commit 5a247e1

Please sign in to comment.