code: def unread_all(self, user=None):
          
          qs = self.read()
          if user:
              qs = qs.filter(recipient=user)
          qs.update(read=False)
docs: Marks all notifications as unread for a user (if supplied)
  
          :param user: Notification recipient.
  
          :return: Updates QuerySet as unread.