(self, status)
Set status on object. Although this is a many-to-many relationship
        this makes sure that the parent object only has one status set.

        Args:
            status: Name of the status
Set status on object. Although this is a many-to-many relationship
        this makes sure that the parent object only has one status set.
Set status on object . Although this is a many - to - many relationship this makes sure that the parent object only has one status set .
def set_status(self, status):
        """
        Set status on object. Although this is a many-to-many relationship
        this makes sure that the parent object only has one status set.

        Args:
            status: Name of the status
        """
        for _status in self.status:
            self.status.remove(_status)
        self.status.append(self.Status(user=None, status=status))
        db_session.commit()
def set_status ( self , status ) : for _status in self . status : self . status . remove ( _status ) self . status . append ( self . Status ( user = None , status = status ) ) db_session . commit ( )