def trash_for(self, user):
        """
        Returns all messages that were either received or sent by the given
        user and are marked as deleted.
        """
        return self.filter(
            recipient=user,
            recipient_deleted_at__isnull=False,
        ) | self.filter(
            sender=user,
            sender_deleted_at__isnull=False,
        )
def trash_for ( self , user ) : return self . filter ( recipient = user , recipient_deleted_at__isnull = False , ) | self . filter ( sender = user , sender_deleted_at__isnull = False , )
Returns all messages that were either received or sent by the given
        user and are marked as deleted.