#NEWLINE# def form_valid( self , form ) : #NEWLINE# #INDENT# instance = form . save ( ) #NEWLINE# messages . success ( self . request , self . get_success_message ( form ) , buttons = self . get_success_message_buttons ( instance ) ) #NEWLINE# return redirect ( self . get_success_url ( ) )