Esempio n. 1
0
 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
Esempio n. 2
0
 def __init__(self, content, *args, **kwargs):
     super(HttpJsonResponse, self).__init__(content_type="application/json", *args, **kwargs)
     self.content = json_parse(content)