(self, label)
Remove a label from an object.

        Args:
            label: Name of the label.
Remove a label from an object.
Remove a label from an object .
def remove_label(self, label):
        """Remove a label from an object.

        Args:
            label: Name of the label.
        """
        for label_obj in self.labels:
            if label_obj.label.lower() != label.lower():
                continue
            self.labels.remove(label_obj)
        db_session.commit()
def remove_label ( self , label ) : for label_obj in self . labels : if label_obj . label . lower ( ) != label . lower ( ) : continue self . labels . remove ( label_obj ) db_session . commit ( )