Skip to content
This repository was archived by the owner on Oct 7, 2023. It is now read-only.

Commit 0d6b9b5

Browse files
author
Mohammed Hammoud
committed
Add has_active_subscription and can_charge fields
1 parent 68b2610 commit 0d6b9b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

payments/api/serializers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ class Meta:
3636

3737

3838
class CurrentSubscriptionSerializer(ModelSerializer):
39+
has_active_subscription = serializers.ReadOnlyField()
40+
can_charge = serializers.ReadOnlyField()
41+
3942
class Meta:
4043
model = CurrentSubscription
4144

0 commit comments

Comments
 (0)