Skip to content

Instantly share code, notes, and snippets.

@wyattwalter
Created July 11, 2012 06:35
Show Gist options
  • Save wyattwalter/3088407 to your computer and use it in GitHub Desktop.
Save wyattwalter/3088407 to your computer and use it in GitHub Desktop.
django-celery post_save signal
@receiver(post_save, sender=Guide, dispatch_uid='guide_saved')
def import_photos(sender, instance):
ImportPhotosTask.apply_async([instance], countdown=2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment