oncall-engine/engine/apps/user_management/exceptions.py
Innokentii Konstantinov 8abbcee050
Org soft-delete (#1073)
# What this PR does
It introduces soft-delete of organization, since grafana stacks are
soft-deleted too. Also, we had a problem with deleting orgs with large
amounts of alerts, so soft-deletion will fix this problem. I think, that
problem of cleaning alerts of deleted orgs should be solved as a part of
alert retention
2023-01-05 12:42:55 +08:00

11 lines
315 B
Python

from .models import Organization
class OrganizationDeletedException(Exception):
def __init__(self, organization: Organization):
self.organization = organization
class OrganizationMovedException(Exception):
def __init__(self, organization: Organization):
self.organization = organization