title: django 'str' object has no attribute '_meta'
body: <p>Sorry for my English. I have some data from another server, but I need to output this data like JSON.</p>
  <p>if i print <strong>response</strong> in console:</p>
  <pre><code>{
      'responseStatus': {
          'status': [],
      },
      'modelYear': [
          1981,
          1982
        
      ]
  }
  </code></pre>
  <p>but, if i return this <strong>response</strong> like <code>HttpResponse</code> i have an error</p>
  <blockquote>
  <p>AttributeError: 'str' object has no attribute '_meta'</p>
  </blockquote>
  <p>this my code:</p>
  <pre><code>data = serializers.serialize('json', response, ensure_ascii=False)
  return HttpResponse(data, content_type=&quot;application/json&quot;)
  </code></pre>
  <p><strong>UPD:</strong></p>
  <p>I tried with this:</p>
  <pre><code>from django.http import JsonResponse
  
  def some_view(request):
      ...
      return JsonResponse(response, safe=False)
  </code></pre>
  <p>but have error:</p>
  <blockquote>
  <p>Object of type 'ModelYears' is not JSON serializable</p>
  </blockquote>
  <p><strong>UPD:</strong></p>
  <p>I did like this:</p>
  <pre><code>import json
  from django.http import JsonResponse
  
  def some_view(request):
          ...
          return JsonResponse(json.loads(response))
  </code></pre>
  <p>but have error:</p>
  <pre><code>the JSON object must be str, bytes or bytearray, not 'ModelYears'
  </code></pre>