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

Method clone

api/features/models.py:1144–1150  ·  view source on GitHub ↗
(self, feature_state: FeatureState)

Source from the content-addressed store, hash-verified

1142 objects = FeatureStateValueManager() # type: ignore[misc]
1143
1144 def clone(self, feature_state: FeatureState) -> "FeatureStateValue":
1145 clone = deepcopy(self)
1146 clone.id = None
1147 clone.uuid = uuid.uuid4()
1148 clone.feature_state = feature_state
1149 clone.save()
1150 return clone
1151
1152 def copy_from(self, source_feature_state_value: "FeatureStateValue"): # type: ignore[no-untyped-def]
1153 # Copy feature state type and values from given feature state value.

Callers

nothing calls this directly

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected