def update_user_details(backend, details, response, user=None, is_new=False, *args, **kwargs):
 if (user is None):
  return
 changed = False
 for (name, value) in six.iteritems(details):
  if (not _ignore_field(name, is_new)):
   if (value and (value != getattr(user, name, None))):
    setattr(user, name, value)
    changed = True
 if changed:
  user.save()

def update_user_details ( backend , details , response , user = None , is_new = False , * args , ** kwargs ) : if ( user is None ) : return changed = False for ( name , value ) in six . iteritems ( details ) : if ( not _ignore_field ( name , is_new ) ) : if ( value and ( value != getattr ( user , name , None ) ) ) : setattr ( user , name , value ) changed = True if changed : user . save ( )
update user details using data from provider .