Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to filter_by with a list
#1
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()
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020