Python Forum

Full Version: How to filter_by with a list
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am filtering through posts and I want for the filter to be a list of users. How would I go about doing that
posts = Post.query.filter_by(author=current_user.followingList).all()