diff --git a/src/palace/manager/sqlalchemy/model/licensing.py b/src/palace/manager/sqlalchemy/model/licensing.py index d19c7cdb3..a24e2ad2b 100644 --- a/src/palace/manager/sqlalchemy/model/licensing.py +++ b/src/palace/manager/sqlalchemy/model/licensing.py @@ -1656,13 +1656,6 @@ def delete(self): pools = list(self.license_pools) _db.delete(self) - # TODO: We need to explicitly commit here so that - # LicensePool.delivery_mechanisms gets updated. It would be - # better if we didn't have to do this, but I haven't been able - # to get LicensePool.delivery_mechanisms to notice that it's - # out of date. - _db.commit() - # The deletion of a LicensePoolDeliveryMechanism might affect # the open-access status of its associated LicensePools. for pool in pools: