def get_user_quests(user):
    """Get the quests the user is participating in."""
    return user.quest_set.filter(
        questmember__user=user,
        questmember__opt_out=False,
        questmember__completed=False
    )