def get_unread(self, request, notifications, mark_as_read):
notifications = notifications.filter(is_read=False)<EOL>serializer = UnreadNotificationSerializer(list(notifications),  <EOL>many=True,<EOL>context=self.get_serializer_context())<EOL>if mark_as_read:<EOL><INDENT>notifications.update(is_read=True)<EOL><DEDENT>return Response(serializer.data)<EOL>
return unread notifications and mark as read
(unless read=false param is passed)