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

Class EnvironmentSerializerFull

api/environments/serializers.py:20–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20class EnvironmentSerializerFull(serializers.ModelSerializer): # type: ignore[type-arg]
21 feature_states = FeatureStateSerializerFull(many=True)
22 project = ProjectListSerializer()
23
24 class Meta:
25 model = Environment
26 fields = (
27 "id",
28 "name",
29 "feature_states",
30 "project",
31 "api_key",
32 "minimum_change_request_approvals",
33 "allow_client_traits",
34 "is_creating",
35 )
36
37
38class EnvironmentSerializerLight(serializers.ModelSerializer[Environment]):

Callers 1

Calls 2

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…