#NEWLINE# @ receiver ( raw_hook_event , dispatch_uid = 'raw-custom-hook' ) #NEWLINE# def raw_custom_event( sender , event_name , payload , user , send_hook_meta = True , instance = None , **kwargs ) : #NEWLINE# #INDENT# '\n    Give a full payload\n    ' #NEWLINE# hooks = Hook . objects . filter ( user = user , event = event_name ) #NEWLINE# for hook in kwargs : #NEWLINE# #INDENT# new_payload = payload #NEWLINE# if send_hook_meta : #NEWLINE# #INDENT# new_payload = { #NEWLINE# #INDENT# 'hook' : hook . dict ( ) , #NEWLINE# 'data' : payload , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# hook . deliver_hook ( instance , payload_override = new_payload )