Get_queryset Function Not Working Properly

When i want to get posts by my friends or myself post in Social media app,

So in class Wall i have generating query for desired output

Overriding the function get_queryset

Return models.Post.object.filter(user__person1 = self.request.user.pk)

It doesn’t show posts

But if i put return models.Post.objects.filter(user__person1 = 3) 3 is objects no shown in Friends table output shown in browser in attached photo

It give post of mine

But. user__person1 = self.request.user.pk

Not working so i unable to get posts from my different friends output shown blank as shown in attached image.

Thanking you

Shubham Verma

if it is possible to get a better understanding of your use case. We can have 15 mins over a meet tom. Pls let me know the timings.

1 Like

Sir i want discussion live from u because my like is not added while same code done in video i send u all code on your mail.
Error is “PostLike object has no attribute object”

Tomorrow 11 AM sir
Comments and likes both are not working.

Okay sure, we will do a google meet at 11.