def sync_user_email_addresses(user):
 from .models import EmailAddress
 email = user_email(user)
 if (email and (not EmailAddress.objects.filter(user=user, email__iexact=email).exists())):
  if (app_settings.UNIQUE_EMAIL and EmailAddress.objects.filter(email__iexact=email).exists()):
   return
  EmailAddress.objects.create(user=user, email=email, primary=False, verified=False)

def sync_user_email_addresses ( user ) : from . models import EmailAddress email = user_email ( user ) if ( email and ( not EmailAddress . objects . filter ( user = user , email__iexact = email ) . exists ( ) ) ) : if ( app_settings . UNIQUE_EMAIL and EmailAddress . objects . filter ( email__iexact = email ) . exists ( ) ) : return EmailAddress . objects . create ( user = user , email = email , primary = False , verified = False )
keep user .