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