notification deployment - v3
This commit is contained in:
@@ -26,11 +26,12 @@ class NotificationViewSet(SoftDeleteMixin, POSDeviceMixin, DynamicSearchMixin, v
|
||||
is_read=False
|
||||
)
|
||||
|
||||
# set notifications delivered status to true
|
||||
# queryset.update(delivered=True)
|
||||
|
||||
# paginate & response
|
||||
page = self.paginate_queryset(queryset)
|
||||
|
||||
# set notifications delivered status to true
|
||||
queryset.update(delivered=True)
|
||||
|
||||
if page is not None:
|
||||
serializer = self.get_serializer(page, many=True)
|
||||
return self.get_paginated_response(serializer.data)
|
||||
|
||||
Reference in New Issue
Block a user