max price exclude
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user