def __init__(self, data): HttpResponse.__init__( self, content=json.dumps(data, cls=LazyEncoder), content_type="application/json", )
def __init__(self, obj): data = json.dumps(obj) HttpResponse.__init__(self, data, content_type='application/json')
def __init__(self, json_object): HttpResponse.__init__(self, json.dumps(json_object), content_type="application/json")
def __init__(self, text, **kwargs): return HttpResponse.__init__(self, text, content_type='application/json', **kwargs)
def __init__(self, text, **kwargs): return HttpResponse.__init__(self, text, content_type='text/plain', **kwargs)