From 9041b7c7e2f08826645681f5bd30a72cd28f4113 Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Tue, 28 Jan 2025 22:35:13 +0330 Subject: [PATCH] add image field --- backend/product/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/product/serializers.py b/backend/product/serializers.py index 2fde664..12e25f4 100644 --- a/backend/product/serializers.py +++ b/backend/product/serializers.py @@ -40,7 +40,7 @@ class SubCategorySerializer(serializers.ModelSerializer): parent = serializers.SerializerMethodField() class Meta: model = SubCategoryModel - fields = ['id', 'name', 'slug','icon', 'meta_title', 'meta_description', 'product_count', 'show', 'parent'] + fields = ['id', 'name', 'slug','icon', 'meta_title', 'meta_description', 'product_count', 'show', 'parent', 'image'] def get_product_count(self, obj): return obj.products.count() def get_parent(self, obj):