(self)
Calls the save function if the object has already been saved.
Calls the save function if the object has already been saved.
Calls the save function if the object has already been saved .
def commit(self):
        """Calls the save function if the object has already been saved."""
        if not self._resource_id:
            return
        self.save()
def commit ( self ) : if not self . _resource_id : return self . save ( )