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)
| 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 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected