Django query filter a set of data
- by dana
if a have a query like
following = Relations.objects.filter(initiated_by = request.user)
in which i'm having all the users followed by the currently logged in user,
and i want to display those user's blog posts. Using a query like:
blog = New.objects.filter(created_by = following)
it only shows me the blog posts of the user with the…