#NEWLINE# def migrate_email_address( self ) : #NEWLINE# #INDENT# seen_emails = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for email_address in EmailAddress . objects . raw ( 'SELECT * FROM emailconfirmation_emailaddress order by id desc' ) : #NEWLINE# #INDENT# if ( app_settings . UNIQUE_EMAIL and ( email_address . email in seen_emails ) ) : #NEWLINE# #INDENT# print ( ( 'Duplicate e-mail address skipped: %s collides with %s' % ( self , seen_emails [ email_address . email ] ) ) ) #NEWLINE# continue #NEWLINE# #UNINDENT# seen_emails [ email_address . email ] = email_address #NEWLINE# email_address . save ( )