def update_contact(self, from_user, to_user, message):
        contact, created = self.get_or_create(from_user,
                                              to_user,
                                              message)

        # If the contact already existed, update the message
        if not created:
            contact.latest_message = message
            contact.save()
        return contact
Get or update a contacts information
dataset/ETHPy150Open clione/django-kanban/src/core/userena/contrib/umessages/managers.py/MessageContactManager.update_contact