mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	add filtering to list endpoint
This commit is contained in:
		| @@ -152,6 +152,11 @@ class NotificationList(generics.ListAPIView): | ||||
|         'message', | ||||
|     ] | ||||
|  | ||||
|     filter_fields = [ | ||||
|         'category', | ||||
|         'read', | ||||
|     ] | ||||
|  | ||||
|     def filter_queryset(self, queryset): | ||||
|         """ | ||||
|         Only list notifications which apply to the current user | ||||
|   | ||||
		Reference in New Issue
	
	Block a user