MCPcopy Create free account
hub / github.com/intelowlproject/IntelOwl / report_model

Method report_model

api_app/views.py:992–1005  ·  view source on GitHub ↗

Abstract property that should return the model class for the report. Subclasses must implement this property to specify the model class for the reports being handled by this view set. Returns: Type[AbstractReport]: The model class for the report.

(cls)

Source from the content-addressed store, hash-verified

990
991 @abstractclassproperty
992 def report_model(cls):
993 """
994 Abstract property that should return the model class for the report.
995
996 Subclasses must implement this property to specify the model
997 class for the reports being handled by this view set.
998
999 Returns:
1000 Type[AbstractReport]: The model class for the report.
1001
1002 Raises:
1003 NotImplementedError: If not overridden by a subclass.
1004 """
1005 raise NotImplementedError()
1006
1007 def get_queryset(self):
1008 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected