views.xmlhttprequest_vote_on_object() returns HttpResponse with invalid MIME
type. The default 'text/html' is not changed there.
The following fix should do this:
return HttpResponse(simplejson.dumps({
'success': True,
'score': Vote.objects.get_score(obj),
}),
content_type='application/json'
)
Original issue reported on code.google.com by michal.s...@gmail.com on 10 Jan 2011 at 2:25
Original issue reported on code.google.com by
michal.s...@gmail.com
on 10 Jan 2011 at 2:25