@receiver(pre_delete, sender=Repository, dispatch_uid=u'repository_delete_reset_review_counts')
def repository_delete_reset_review_counts(sender, instance, using, **kwargs):
 fix_review_counts()

@ receiver ( pre_delete , sender = Repository , dispatch_uid = u'repository_delete_reset_review_counts' ) def repository_delete_reset_review_counts ( sender , instance , using , ** kwargs ) : fix_review_counts ( )
reset review counts in the dashboard when deleting repository objects .