SHARE
TWEET

Untitled

a guest Jun 19th, 2017 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @receiver(post_save, sender=settings.AUTH_USER_MODEL)
  2. def submit_welcome_email(sender, instance=None, created=False, **kwargs):
  3.    from project.users.tasks import send_welcome_email
  4.    if created:
  5.        send_welcome_email.s(user_id=instance.id).apply_async()
RAW Paste Data
Top