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

Method copy_from

api/features/models.py:1152–1158  ·  view source on GitHub ↗
(self, source_feature_state_value: "FeatureStateValue")

Source from the content-addressed store, hash-verified

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.
1154 self.type = source_feature_state_value.type
1155 self.boolean_value = source_feature_state_value.boolean_value
1156 self.integer_value = source_feature_state_value.integer_value
1157 self.string_value = source_feature_state_value.string_value
1158 self.save()
1159
1160 def get_skip_create_audit_log(self) -> bool:
1161 try:

Callers 1

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected