Skip to content

Commit

Permalink
PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn Jacobs committed Dec 19, 2017
1 parent 4fffa45 commit a9a396c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions oscarapi/serializers/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,19 @@ class ProductAttributeValueSerializer(OscarModelSerializer):

class Meta:
model = ProductAttributeValue
fields = overridable('OSCARAPI_PRODUCT_ATTRIBUTE_VALUE_FIELDS', default=('name', 'value',))
fields = overridable(
'OSCARAPI_PRODUCT_ATTRIBUTE_VALUE_FIELDS',
default=('name', 'value'))


class ProductAttributeSerializer(OscarModelSerializer):
productattributevalue_set = ProductAttributeValueSerializer(many=True)

class Meta:
model = ProductAttribute
fields = overridable('OSCARAPI_PRODUCT_ATTRIBUTE_FIELDS', default=('name', 'productattributevalue_set'))
fields = overridable(
'OSCARAPI_PRODUCT_ATTRIBUTE_FIELDS',
default=('name', 'productattributevalue_set'))


class ProductImageSerializer(OscarModelSerializer):
Expand Down

0 comments on commit a9a396c

Please sign in to comment.