Skip to content

mixins

django_spire.contrib.progress.mixins

ProgressTrackingMixin

tracker property

get_tracker_key

Source code in django_spire/contrib/progress/mixins.py
def get_tracker_key(self) -> str:
    raise NotImplementedError

progress_error

Source code in django_spire/contrib/progress/mixins.py
def progress_error(self, message: str) -> None:
    self.tracker.error(message)

update_progress

Source code in django_spire/contrib/progress/mixins.py
def update_progress(
    self,
    status: ProgressStatus,
    message: str,
    progress: int,
    **kwargs: Any
) -> None:
    self.tracker.update(status, message, progress, **kwargs)