max price exclude

This commit is contained in:
Parsa Nazer
2025-02-10 18:18:19 +03:30
parent 24514af7fb
commit 17fcbea5db
+1 -1
View File
@@ -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')