def __init__(self, content=None, cls=HttpResponse, *args, **kwargs): super(JsonResponse, self).__init__(content_type="application/json", *args, **kwargs) self.content = json_parse(content) self.status_code = cls.status_code
def __init__(self, content, *args, **kwargs): super(HttpJsonResponse, self).__init__(content_type="application/json", *args, **kwargs) self.content = json_parse(content)