Skip to content

Commit

Permalink
Merge pull request #183 from samitnuk/feature/serializers-consistency…
Browse files Browse the repository at this point in the history
…-improvements

Remove `Meta` class from `AddProductSerializer`
  • Loading branch information
Martijn Jacobs committed Jul 17, 2019
2 parents 5dfb82b + e44baef commit a0e3a18
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions oscarapi/serializers/product.py
Expand Up @@ -437,7 +437,7 @@ class Meta(PublicProductSerializer.Meta):
class ProductLinkSerializer(ProductSerializer):
"""
Summary serializer for list view, listing all products.
This serializer can be easily made to show any field on ``ProductSerializer``,
just add fields to the ``OSCARAPI_PRODUCT_FIELDS`` setting.
"""
Expand Down Expand Up @@ -465,6 +465,3 @@ class AddProductSerializer(serializers.Serializer): # pylint: disable=abstract-
view_name="product-detail", queryset=Product.objects, required=True
)
options = OptionValueSerializer(many=True, required=False)

class Meta:
model = Product

0 comments on commit a0e3a18

Please sign in to comment.