title: Django object of type 'type' has no len()
body: <p>we can't get the http response as json. Error we encountered:</p>
  <pre><code>TypeError at /ui/subfix/3
  object of type 'type' has no len()
  Request Method:GETRequest 
  </code></pre>
  <p>Code sample:</p>
  <pre><code>@api_view(('POST',))
  @csrf_exempt
  @renderer_classes(JSONRenderer,)
  def project_image_alternative_form_submit_ajax(request, object_id):
      project_image = ProjectImage.objects.filter(pk=object_id).first()
      response_json = {
              'message': 'Image ...',
      }
      return Response(response_json, status=status.HTTP_200_OK)
  </code></pre>