Fix for Django 1.5 HttpResponse doesn't have a property _is_string anymore. Code seems to work like this.
Merge Django 1.6 update