code: def get_contacts_for(self, user):
          
          contacts = self.filter(Q(um_from_user=user) | Q(um_to_user=user))
          return contacts
docs: Returns the contacts for this user.
  
          Contacts are other users that this user has received messages
          from or send messages to.
  
          :param user:
              The :class:`User` which to get the contacts for.