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

Method get_history_record_model_class

api/audit/models.py:124–129  ·  view source on GitHub ↗
(
        history_record_class_path: str,
    )

Source from the content-addressed store, hash-verified

122
123 @staticmethod
124 def get_history_record_model_class(
125 history_record_class_path: str,
126 ) -> typing.Type[Model]:
127 module_path, class_name = history_record_class_path.rsplit(".", maxsplit=1)
128 module = import_module(module_path)
129 return getattr(module, class_name) # type: ignore[no-any-return]
130
131 @hook(BEFORE_CREATE)
132 def add_project(self): # type: ignore[no-untyped-def]

Calls

no outgoing calls