comparison 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
comparison
equal deleted inserted replaced
934:9d6c2ed2f348 935:7a795ccd6479
25 """ 25 """
26 photo = kwargs['instance'] 26 photo = kwargs['instance']
27 Sequence.objects.remove_photo(photo.pk) 27 Sequence.objects.remove_photo(photo.pk)
28 28
29 29
30 post_save.connect(on_photo_save, sender=Photo, dispatch_uid='potd.signals') 30 post_save.connect(on_photo_save, sender=Photo, dispatch_uid='potd.receivers')
31 post_delete.connect(on_photo_delete, sender=Photo, dispatch_uid='potd.signals') 31 post_delete.connect(on_photo_delete, sender=Photo, dispatch_uid='potd.receivers')