#NEWLINE# def post( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# varname = kwargs . get ( 'varname' , None ) #NEWLINE# if request . is_ajax ( ) : #NEWLINE# #INDENT# response = HttpResponse ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# response = HttpResponseRedirect ( self . get_success_url ( ) ) #NEWLINE# #UNINDENT# self . process ( request , response , varname ) #NEWLINE# return response