mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	make simpler
This commit is contained in:
		| @@ -144,11 +144,6 @@ def trigger_notifaction(obj, category=None, obj_ref='pk', targets=None, target_f | |||||||
|     """ |     """ | ||||||
|     Send out an notification |     Send out an notification | ||||||
|     """ |     """ | ||||||
|  |  | ||||||
|     # Set defaults |  | ||||||
|     if not category: |  | ||||||
|         category = obj._meta.modelname |  | ||||||
|  |  | ||||||
|     # Resolve objekt reference |     # Resolve objekt reference | ||||||
|     obj_ref_value = getattr(obj, obj_ref) |     obj_ref_value = getattr(obj, obj_ref) | ||||||
|     # Try with some defaults |     # Try with some defaults | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user