Created
July 11, 2012 06:35
-
-
Save wyattwalter/3088407 to your computer and use it in GitHub Desktop.
django-celery post_save signal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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