#NEWLINE# @ method_decorator ( sensitive_post_parameters ( ) ) #NEWLINE# @ csrf_protect_m #NEWLINE# def post( self , request ) : #NEWLINE# #INDENT# self . obj = self . user #NEWLINE# self . form = self . change_password_form ( self . obj , self . POST ) #NEWLINE# if self . form . is_valid ( ) : #NEWLINE# #INDENT# self . form . save ( ) #NEWLINE# self . message_user ( _ ( 'Password changed successfully.' ) , 'success' ) #NEWLINE# return HttpResponseRedirect ( self . get_admin_url ( 'index' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . get_response ( )