code: def mark_all_as_unread(self, recipient=None):
          
          qset = self.read(True)
  
          if recipient:
              qset = qset.filter(recipient=recipient)
  
          return qset.update(unread=True)
docs: Mark as unread any read messages in the current queryset.
  
          Optionally, filter these by recipient first.