mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-29 11:04:35 +00:00
add filtering to list endpoint
This commit is contained in:
1 file changed
+5
@@ -152,6 +152,11 @@ class NotificationList(generics.ListAPIView):
|
|||||||
'message',
|
'message',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
filter_fields = [
|
||||||
|
'category',
|
||||||
|
'read',
|
||||||
|
]
|
||||||
|
|
||||||
def filter_queryset(self, queryset):
|
def filter_queryset(self, queryset):
|
||||||
"""
|
"""
|
||||||
Only list notifications which apply to the current user
|
Only list notifications which apply to the current user
|
||||||
|
|||||||
Reference in new issue
Block a user