(self, vote=None)
return self.is_removed
Mark comment to be hidden instead of displayed entirely.
Mark comment to be hidden instead of displayed entirely.
Mark comment to be hidden instead of displayed entirely .
def toggle(self, vote=None):
        """ Mark comment to be hidden instead of displayed entirely.
        """
        if not self.is_removed:
            self.is_removed = True
        else:
            self.is_removed = False
        if vote is not None:
            self.reason = vote
        self.save()
        if self.is_removed:
            notify_author(self)
        return self.is_removed
def toggle ( self , vote = None ) : if not self . is_removed : self . is_removed = True else : self . is_removed = False if vote is not None : self . reason = vote self . save ( ) if self . is_removed : notify_author ( self ) return self . is_removed