class FollowList(LoginRequiredMixin, ItemsListMixin, View):
def dispatch(self, request, *args, **kwargs):
following = Follow.objects.filter(
user__id=request.user.id
).select_related('author')
post_list = Post.objects.filter(author__following__user=request.user)
return super(FollowList, self).dispatch(request, *args, **kwargs)
qs_name = 'posts'
template = 'posts/follow.html'