Skip to content

Instantly share code, notes, and snippets.

@tomchristie
Created November 18, 2016 12:49
Show Gist options
  • Save tomchristie/31862fba1c41faf9abea10ffc9993c3e to your computer and use it in GitHub Desktop.
Save tomchristie/31862fba1c41faf9abea10ffc9993c3e to your computer and use it in GitHub Desktop.
class ProductPriceSerializer(serializers.Serializer):
title = serializers.CharField(source='product.title')
price = serializers.IntegerField()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment