diff potd/receivers.py @ 935:7a795ccd6479

Add tests for bio signal handlers.
author Brian Neal <bgneal@gmail.com>
date Mon, 20 Apr 2015 21:05:27 -0500
parents 1cb227d59e20
children
line wrap: on
line diff
--- a/potd/receivers.py	Thu Apr 16 20:49:19 2015 -0500
+++ b/potd/receivers.py	Mon Apr 20 21:05:27 2015 -0500
@@ -27,5 +27,5 @@
     Sequence.objects.remove_photo(photo.pk)
 
 
-post_save.connect(on_photo_save, sender=Photo, dispatch_uid='potd.signals')
-post_delete.connect(on_photo_delete, sender=Photo, dispatch_uid='potd.signals')
+post_save.connect(on_photo_save, sender=Photo, dispatch_uid='potd.receivers')
+post_delete.connect(on_photo_delete, sender=Photo, dispatch_uid='potd.receivers')