session Message objects filter reciver request user exclude hide reque

1
session = Message.objects.filter(reciver=request.user).exclude(hide=request.user).extra(select={'GROUP BY "session_id"'})