@receiver(REGISTER_USER)
def email_marketing_register_user(sender, user=None, profile=None, **kwargs):
 email_config = EmailMarketingConfiguration.current()
 if (not email_config.enabled):
  return
 if user.is_anonymous():
  return
 update_user.delay(_create_sailthru_user_vars(user, user.profile), user.email, site=_get_current_site(), new_user=True)

@ receiver ( REGISTER_USER ) def email_marketing_register_user ( sender , user = None , profile = None , ** kwargs ) : email_config = EmailMarketingConfiguration . current ( ) if ( not email_config . enabled ) : return if user . is_anonymous ( ) : return update_user . delay ( _create_sailthru_user_vars ( user , user . profile ) , user . email , site = _get_current_site ( ) , new_user = True )
called after user created and saved args: sender: not used user: the user object for the user being changed profile: the user profile for the user being changed kwargs: not used .