title: How do I create property for objects in views.py in order to pass changed object to JS code
body: <p>I load "endless scroll" feed via AJAX and pagination. Before passing objects to JS code, I need to add property(or is it called attribute ?) to every object, which contains boolean, whether it was liked by current user or not. I thought it might work but something is wrong, because everything is getting undefined in frontend. How do I implement what I want in the right way? It's important to create property for every object, because later it's very practical just to fetch it the loop same as other data.</p>
  
  <pre><code>def loadmore(request,page_number):
      answers_to_questions_objects = Question.objects.filter(whom=request.user.profile).filter(answered=True).order_by('-answered_date')
      paginator = Paginator(answers_to_questions_objects,10)
      current_page = (paginator.page(page_number))
      for item in current_page:
          if request.user.profile in item.who_liked.all():
              item.liked = True
          else:
              item.liked = False
      print(current_page.liked)
      answers = serializers.serialize('json', current_page)
      data = {
          'answers': answers,
  
      }
      return Response(data)
  </code></pre>