33 lines
1.5 KiB
Python
33 lines
1.5 KiB
Python
![]() |
from django.db import models
|
||
|
from django.utils.translation import gettext_lazy as _
|
||
|
|
||
|
# ---------------------------------------------------------------------------
|
||
|
# NotificationKind
|
||
|
# ---------------------------------------------------------------------------
|
||
|
class NotificationKind(models.TextChoices):
|
||
|
"""Event types for notifications."""
|
||
|
RISK_CREATED = "risk.created", _("Risk created")
|
||
|
RISK_UPDATED = "risk.updated", _("Risk updated")
|
||
|
RISK_DELETED = "risk.deleted", _("Risk deleted")
|
||
|
RISK_REVIEW_REQUIRED = "risk.review_required", _("Risk review required")
|
||
|
RISK_REVIEW_COMPLETED = "risk.review_completed", _("Risk review completed")
|
||
|
|
||
|
CONTROL_CREATED = "control.created", _("Control created")
|
||
|
CONTROL_UPDATED = "control.updated", _("Control updated")
|
||
|
CONTROL_DELETED = "control.deleted", _("Control deleted")
|
||
|
|
||
|
RESIDUAL_CREATED = "residual.created", _("Residual created")
|
||
|
RESIDUAL_UPDATED = "residual.updated", _("Residual updated")
|
||
|
RESIDUAL_DELETED = "residual.deleted", _("Residual deleted")
|
||
|
RESIDUAL_REVIEW_REQUIRED = "residual.review_required", _("Residual review required")
|
||
|
RESIDUAL_REVIEW_COMPLETED = "residual.review_completed", _("Residual review completed")
|
||
|
|
||
|
INCIDENT_CREATED = "incident.created", _("Incident created")
|
||
|
INCIDENT_UPDATED = "incident.updated", _("Incident updated")
|
||
|
INCIDENT_DELETED = "incident.deleted", _("Incident deleted")
|
||
|
|
||
|
USER_CREATED = "user.created", _("User created")
|
||
|
USER_DELETED = "user.deleted", _("User deleted")
|
||
|
|
||
|
|