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