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

Method to_representation

api/features/serializers.py:197–198  ·  view source on GitHub ↗
(self, value: UserPermissionGroup)

Source from the content-addressed store, hash-verified

195 return UserPermissionGroup.objects.all()
196
197 def to_representation(self, value: UserPermissionGroup) -> dict[str, Any]:
198 return UserPermissionGroupSummarySerializer(value).data
199
200
201class CreateFeatureSerializer(DeleteBeforeUpdateWritableNestedModelSerializer):

Callers

nothing calls this directly

Tested by

no test coverage detected