Solved : Object of type Company is not JSON serializable

Shop Forums Django Discussion Solved : Object of type Company is not JSON serializable

Viewing 0 reply threads
  • Author
    Posts
    • #7193
      Projects Plaza
      Participant

      We can solve this problem with following code

      data = serializers.serialize('json', get_queryset())
      return HttpResponse(data, content_type="application/json")
Viewing 0 reply threads
  • You must be logged in to reply to this topic.