From 42930b8e51585ec6a2c33e0dd45651922df04d68 Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Tue, 21 Oct 2025 13:39:26 +0330 Subject: [PATCH] add pricing_type_name to price calculation items --- apps/product/web/api/v1/serializers/quota_serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/product/web/api/v1/serializers/quota_serializers.py b/apps/product/web/api/v1/serializers/quota_serializers.py index e8de527..459967e 100644 --- a/apps/product/web/api/v1/serializers/quota_serializers.py +++ b/apps/product/web/api/v1/serializers/quota_serializers.py @@ -69,11 +69,11 @@ class QuotaSerializer(serializers.ModelSerializer): items = [ { "pricing_type": it["pricing_type_id"], - "pricing_type_name": it["pricing_type_name"], + "pricing_type_name": it["pricing_type__name"], "name": it["name"], "value": it["value"], } - for it in instance.pricing_items.values("pricing_type_id", "pricing_type_name", "name", "value") + for it in instance.pricing_items.values("pricing_type_id", "pricing_type__name", "name", "value") ] representation["price_calculation_items"] = items