Skip to content

Commit 5a91c03

Browse files
committed
products: Return ID in ProductImageSerializer.
1 parent 24d7460 commit 5a91c03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

products/serializers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _get_image_url(self, obj):
9494

9595
class Meta:
9696
model = ProductImage
97-
fields = ['product', 'image', 'mini_description']
97+
fields = ['id', 'product', 'image', 'mini_description']
9898

9999

100100
class ProductImageCRUDSerializer(serializers.ModelSerializer):

0 commit comments

Comments
 (0)