def METHOD_NAME(self, *args, **kwargs):
    context = super().METHOD_NAME(*args, **kwargs)
    jobs = TransitionJob.objects.filter(
        content_type=ContentType.objects.get_for_model(self.object),
        object_id=self.object.pk,
    )
    jobs_in_progress = jobs.active()
    jobs_ended = jobs.inactive()
    context['jobs_in_progress'] = jobs_in_progress
    context['jobs_ended'] = jobs_ended
    context['are_jobs_running'] = any([j.is_running for j in jobs])
    return context