core.mixins.HealthModelMixin module¶
Module with the HealthMixin.
- class core.mixins.HealthModelMixin.HealthModelMixin(*args, **kwargs)[source]¶
Bases:
ModelMixin adding a health functionality to a model class.
- is_healthy¶
Flags whether the model instance is subject to errors. None by default.
- last_error¶
The latest error in connection with the model instance.
- last_error_occurred_at¶
The time of occurrence of the latest error.
- class Meta[source]¶
Bases:
objectMetadata class for the mixin, abstract to avoid makemigrations picking it up.
- abstract = False¶
- _meta = <Options for HealthModelMixin>¶