class PostSerializer(serializers.ModelSerializer):
    fav = serializers.SerializerMethodField('likedByUser')

def likedByUser(self, obj):
    request = self.context.get('request', None)
Add user specific fields to Django REST Framework serializer