def has_joins(queryset):
    for join in six.itervalues(queryset.query.alias_map):
        if join.join_type:
            return True
    return False
creates a selection_set and a row
dataset/ETHPy150Open AltSchool/dynamic-rest/dynamic_rest/filters.py/has_joins--crossover with--dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/selection_manager.py/SelectionRowFactory.create_row