Skip to content

Services

hypha.apply.funds.reviewers.services

User module-attribute

User = get_user_model()

get_all_reviewers

get_all_reviewers(*args, **kwargs)

All assigned reviewers, staff or admin.

Source code in hypha/apply/funds/reviewers/services.py
def get_all_reviewers(*args, **kwargs) -> QuerySet:
    """All assigned reviewers, staff or admin."""
    q_obj = (
        Q(submissions_reviewer__isnull=False)
        | Q(groups__name=STAFF_GROUP_NAME)
        | Q(is_superuser=True)
    )
    return User.objects.filter(q_obj).distinct()