MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / SubscriptionSerializer

Class SubscriptionSerializer

api/organisations/serializers.py:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28class SubscriptionSerializer(serializers.ModelSerializer): # type: ignore[type-arg]
29 has_active_billing_periods = serializers.SerializerMethodField()
30
31 class Meta:
32 model = Subscription
33 exclude = ("organisation",)
34
35 @extend_schema_field({"type": "boolean"})
36 def get_has_active_billing_periods(self, obj): # type: ignore[no-untyped-def]
37 return obj.has_active_billing_periods
38
39
40class OrganisationSerializerFull(serializers.ModelSerializer): # type: ignore[type-arg]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…