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

Function abstract_base_auditable_model_factory

api/core/models.py:218–239  ·  view source on GitHub ↗
(
    historical_records_excluded_fields: typing.List[str] = None,  # type: ignore[assignment]
    change_details_excluded_fields: typing.Sequence[str] = None,  # type: ignore[assignment]
    show_change_details_for_create: bool = False,
)

Source from the content-addressed store, hash-verified

216
217
218def abstract_base_auditable_model_factory(
219 historical_records_excluded_fields: typing.List[str] = None, # type: ignore[assignment]
220 change_details_excluded_fields: typing.Sequence[str] = None, # type: ignore[assignment]
221 show_change_details_for_create: bool = False,
222) -> typing.Type[AbstractBaseAuditableModel]:
223 class Base(AbstractBaseAuditableModel):
224 history = SoftDeleteAwareHistoricalRecords(
225 bases=[
226 base_historical_model_factory(
227 change_details_excluded_fields or [],
228 show_change_details_for_create,
229 )
230 ],
231 excluded_fields=historical_records_excluded_fields or [],
232 get_user=get_history_user,
233 inherit=True,
234 )
235
236 class Meta:
237 abstract = True
238
239 return Base

Callers 15

EnvironmentClass · 0.90
FeatureClass · 0.90
FeatureSegmentClass · 0.90
FeatureStateClass · 0.90
FeatureStateValueClass · 0.90
ReleasePipelineClass · 0.90
ChangeRequestClass · 0.90
FeatureHealthEventClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…