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

Method create_feature_state_value

api/features/models.py:835–842  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

833
834 @hook(AFTER_CREATE)
835 def create_feature_state_value(self): # type: ignore[no-untyped-def]
836 # note: this is only performed after create since feature state values are
837 # updated separately, and hence if this is performed after each save,
838 # it overwrites the FSV with the initial value again
839 FeatureStateValue.objects.create(
840 feature_state=self,
841 **self.get_feature_state_value_defaults(),
842 )
843
844 @hook(AFTER_CREATE)
845 def create_multivariate_feature_state_values(self): # type: ignore[no-untyped-def]

Callers

nothing calls this directly

Calls 2

createMethod · 0.45

Tested by

no test coverage detected