[Answer]-Django: Current login user in a query list

1👍

It works, but like_set.all is not list of usernames, but list of users. Therefore check if user.username is in list of users fails. Check if user is in like_set.all.

Leave a comment