#NEWLINE# def post( self , request , * args , **kargs ) : #NEWLINE# #INDENT# form = self . get_form ( request ) #NEWLINE# if form . is_valid ( ) : #NEWLINE# #INDENT# parent_pk = quote ( form . cleaned_data [ 'parent_page' ] . pk ) #NEWLINE# return redirect ( self . url_helper . get_action_url ( 'add' , self . app_label , self . model_name , parent_pk ) ) #NEWLINE# #UNINDENT# context = { #NEWLINE# #INDENT# 'view' : context , #NEWLINE# 'form' : form , #NEWLINE# #UNINDENT# } #NEWLINE# return render ( request , self . get_template ( ) , context )