diff --git a/ivy/products/serializers.py b/ivy/products/serializers.py index b88b5ce..33dd5b4 100644 --- a/ivy/products/serializers.py +++ b/ivy/products/serializers.py @@ -7,7 +7,7 @@ class HistoricalRecordField(serializers.ListField): child = serializers.DictField() def to_representation(self, data): - return super().to_representation(data.values('id', 'history_date').order_by('history_date')) + return super().to_representation(data.values('quantity', 'history_date').order_by('history_date')) class ProductSerializer(serializers.HyperlinkedModelSerializer):