Use content_type instead of mimetype when initializing a HttpResponse