Browse Source

Rename plan_set > plans

David Burke 4 years ago
parent
commit
0faf6d9948
1 changed files with 2 additions and 2 deletions
  1. 2 2
      djstripe_ext/serializers.py

+ 2 - 2
djstripe_ext/serializers.py

@@ -15,11 +15,11 @@ class PlanSerializer(ModelSerializer):
 
 
 class ProductSerializer(ModelSerializer):
-    plan_set = PlanSerializer(many=True)
+    plans = PlanSerializer(many=True, source="plan_set")
 
     class Meta:
         model = Product
-        fields = ("id", "name", "description", "type", "plan_set", "metadata")
+        fields = ("id", "name", "description", "type", "plans", "metadata")
 
 
 class SubscriptionSerializer(BaseSubscriptionSerializer):