'Checks if the message is read by the given user'

def is_read(self, user):

    if (not isinstance(user, User)):
        raise TypeError('The    given    user    is    not    an    instance    of    core.User')
    return self.read_by.filter(pk=user.id).exists()
