MCPcopy Index your code
hub / github.com/Flagsmith/flagsmith / ProjectFeatureSerializer

Class ProjectFeatureSerializer

api/features/serializers.py:612–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610
611
612class ProjectFeatureSerializer(serializers.ModelSerializer): # type: ignore[type-arg]
613 owners = UserListSerializer(many=True, read_only=True)
614 group_owners = UserPermissionGroupSummarySerializer(many=True, read_only=True)
615
616 class Meta:
617 model = Feature
618 fields = (
619 "id",
620 "name",
621 "created_date",
622 "description",
623 "initial_value",
624 "default_enabled",
625 "type",
626 "owners",
627 "group_owners",
628 "is_server_key_only",
629 )
630 writeonly_fields = ("initial_value", "default_enabled")
631
632
633class SDKFeatureStateSerializer(

Callers

nothing calls this directly

Tested by

no test coverage detected