mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
add filtering to list endpoint
This commit is contained in:
parent
f2d0b06881
commit
866674497a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user