Skip to content

Utils

hypha.apply.todo.utils

get_project_lead_tasks

get_project_lead_tasks(lead, related_obj)
Source code in hypha/apply/todo/utils.py
def get_project_lead_tasks(lead, related_obj):
    tasks = Task.objects.filter(
        code__in=project_lead_task_codes,
        user=lead,
        related_content_type=ContentType.objects.get_for_model(related_obj).id,
        related_object_id=related_obj.id,
    )
    return tasks