def METHOD_NAME(queryset, value):
    """Filters countries from the m49 list, for projects."""
    if not value:
        return queryset
    else:
        return queryset.filter(get_m49_filter(value))