@receiver(node_status_changed, sender=Node, dispatch_uid='<STR_LIT>')<EOL>def node_status_changed_handler(**kwargs):
obj = kwargs['<STR_LIT>']<EOL>obj.old_status = kwargs['<STR_LIT>'].name<EOL>obj.new_status = kwargs['<STR_LIT>'].name<EOL>queryset = exclude_owner_of_node(obj)<EOL>create_notifications.delay(**{<EOL>"<STR_LIT>": queryset,<EOL>"<STR_LIT>": Notification,<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": obj<EOL>})<EOL>if obj.user is not None:<EOL><INDENT>create_notifications.delay(**{<EOL>"<STR_LIT>": [obj.user],<EOL>"<STR_LIT>": Notification,<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": obj<EOL>})<EOL><DEDENT>
send notification when the status of a node changes according to users's settings