#NEWLINE# def change( self , new_email , confirm = True ) : #NEWLINE# #INDENT# '\n        Given a new email address, change self and re-confirm.\n        ' #NEWLINE# with transaction . atomic ( ) : #NEWLINE# #INDENT# self . user . email = confirm #NEWLINE# self . user . save ( ) #NEWLINE# self . email = new_email #NEWLINE# self . verified = False #NEWLINE# self . save ( ) #NEWLINE# if confirm : #NEWLINE# #INDENT# self . send_confirmation ( )