def lock_change_receiver():
    '\n    A decorator for connecting receivers to signals that a lock has change.\n\n        @receiver(post_save, sender=MyModel)\n        def signal_receiver(sender, **kwargs):\n            ...\n\n    '

    def _decorator(func):
        LockCache.lock_change_receivers.append(func)
        return func
    return _decorator
A decorator for connecting receivers to signals that a lock has change.

    @receiver(post_save, sender=MyModel)
    def signal_receiver(sender, **kwargs):
        ...
def lock_change_receiver():
    '\n    A decorator for connecting receivers to signals that a lock has change.\n\n        @receiver(post_save, sender=MyModel)\n        def signal_receiver(sender, **kwargs):\n            ...\n\n    '

    def _decorator(func):
        LockCache.lock_change_receivers.append(func)
        return func
    return _decorator