title: <Django object > is not JSON serializable
body: <p>I have the following code for serializing the queryset:</p>
  <pre><code>def render_to_response(self, context, **response_kwargs):
  
      return HttpResponse(json.simplejson.dumps(list(self.get_queryset())),
                          mimetype=&quot;application/json&quot;)
  </code></pre>
  <p>And following is my <code>get_quersety()</code></p>
  <pre><code>[{'product': &lt;Product: hederello ()&gt;, u'_id': u'9802', u'_source': {u'code': u'23981', u'facilities': [{u'facility': {u'name': {u'fr': u'G\xe9n\xe9ral', u'en': u'General'}, u'value': {u'fr': [u'bar', u'r\xe9ception ouverte 24h/24', u'chambres non-fumeurs', u'chambres familiales',.........]}]
  </code></pre>
  <p>Which I need to serialize. But it says not able to serialize the <code>&lt;Product: hederello ()&gt;</code>. Because the list is composed of both django objects and dicts. Any ideas?</p>