def METHOD_NAME(queryset, name, value):
    if value:
        # 'Harry Potter' -> ['Harry', 'Potter']
        tokens = re.split(r"\s+", value)
        # Each token must match email address or github username or personal or
        # family name.
        for token in tokens:
            queryset = queryset.filter(
                Q(personal__icontains=token)
                | Q(family__icontains=token)
                | Q(email__icontains=token)
            )
        return queryset
    else:
        return queryset