#NEWLINE# def __init__( self , content = '' , json_opts = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , mimetype = 'application/json' , * args , **kwargs ) : #NEWLINE# #INDENT# '\n        This returns a object that we send as json content using \n        utils.serialize_to_json, that is a wrapper to simplejson.dumps\n        method using a custom class to handle models and querysets. Put your\n        options to serialize_to_json in json_opts, other options are used by\n        response.\n        ' #NEWLINE# if content : #NEWLINE# #INDENT# content = serialize_to_json ( content , ** json_opts ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# content = serialize_to_json ( [ ] , ** json_opts ) #NEWLINE# #UNINDENT# super ( JSONResponse , self ) . __init__ ( content , mimetype , * args , ** kwargs )