title: How to Return an array of objects in a Django model
body: <p>I'm using javascript (plus AngularJS and Restangular) to call a Django endpoint and retrieve an array of proposals. But I can't seem to get my Django syntax right. </p>
  
  <p><strong>How do I return and array of objects in a given Django model?</strong></p>
  
  <pre><code>def proposal_api(request):
      response = {}
      response['proposal_list'] = Proposal.objects.all()
      return response
  </code></pre>
  
  <p>The Django View above throws the following Attribute error: <code>'dict' object has no attribute 'status_code'</code></p>
  
  <p>Once I receive the array of proposals from the above Django View (with IDs, names, questions, etc...) I'll use AngularJS to display everything.</p>