From 316fd03af7973f5557e0b246c33333546daabe4f 2018-02-28 19:28:31 From: Marcin Lulek Date: 2018-02-28 19:28:31 Subject: [PATCH] alert_channels: allow binding to resources --- diff --git a/backend/src/appenlight/models/alert_channel.py b/backend/src/appenlight/models/alert_channel.py index f298a46..469e4a5 100644 --- a/backend/src/appenlight/models/alert_channel.py +++ b/backend/src/appenlight/models/alert_channel.py @@ -79,7 +79,7 @@ class AlertChannel(Base, BaseModel): secondary=channel_rules_m2m_table, backref='channels') resources = sa.orm.relationship('Resource', - cascade="all, delete-orphan", + cascade="all", passive_deletes=True, passive_updates=True, secondary=channel_resources_m2m_table,