

def trash(self, user):
    return self.filter((Q(to_user=user, to_status=TO_STATUS_DELETED) | Q(from_user=user, from_status=FROM_STATUS_DELETED)))

dataset/ETHPy150Open nathanborror/django-basic-apps/basic/messages/models.py MessageManager.trash/original