From 17fcbea5db96c1f924461df530f77abb3dd50a99 Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Mon, 10 Feb 2025 18:18:19 +0330 Subject: [PATCH] max price exclude --- 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 11fc5fc..4907698 100644 --- a/backend/product/serializers.py +++ b/backend/product/serializers.py @@ -35,7 +35,7 @@ class ProductVariantSerialzier(serializers.ModelSerializer): price = serializers.SerializerMethodField() class Meta: model = ProductVariant - exclude = ('min_price', 'sell', 'currency', 'product') + exclude = ('min_price', 'max_price','sell', 'currency', 'product') def get_price(self, obj): dollor_price = self.context.get('dollor_price')