mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	and again
This commit is contained in:
		| @@ -139,7 +139,7 @@ class UIMessageNotification(SingleNotificationMethod): | ||||
| # endregion | ||||
|  | ||||
|  | ||||
| def trigger_notifaction(obj, entry_name=None, obj_ref='pk', targets=None, receiver_fnc=None, receiver_args=[], receiver_kwargs={}, notification_context={}): | ||||
| def trigger_notifaction(obj, entry_name=None, obj_ref='pk', targets=None, target_fnc=None, target_args=[], target_kwargs={}, notification_context={}): | ||||
|     """ | ||||
|     Send out an notification | ||||
|     """ | ||||
| @@ -168,7 +168,7 @@ def trigger_notifaction(obj, entry_name=None, obj_ref='pk', targets=None, receiv | ||||
|     logger.info(f"Gathering users for notification '{entry_name}'") | ||||
|     # Collect possible targets | ||||
|     if not targets: | ||||
|         targets = receiver_fnc(*receiver_args, **receiver_kwargs) | ||||
|         targets = target_fnc(*target_args, **target_kwargs) | ||||
|  | ||||
|     if targets: | ||||
|         logger.info(f"Sending notification '{entry_name}' for '{str(obj)}'") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user