Introduced in Django 1.3 (django.dispatch.receiver)
    
    A decorator for connecting receivers to signals. Used by passing in the
    signal and keyword arguments to connect::

    @receiver(post_save, sender=MyModel)
    def signal_receiver(sender, **kwargs):
        do_stuff()

def receiver(signal, **kwargs):
    """
    Introduced in Django 1.3 (django.dispatch.receiver)
    
    A decorator for connecting receivers to signals. Used by passing in the
    signal and keyword arguments to connect::

    @receiver(post_save, sender=MyModel)
    def signal_receiver(sender, **kwargs):
        do_stuff()
    """
    def _decorator(func):
        signal.connect(func, **kwargs)
        return func
    return _decorator