Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(workflows): pass the consent mode default as a value, not a member (#108462)

Julian Bez92ad9937fdfd
diff --git a/products/workflows/backend/models/team_workflows_config.py b/products/workflows/backend/models/team_workflows_config.py
index 27800f4ffeef..c8dcb1f2dde6 100644
--- a/products/workflows/backend/models/team_workflows_config.py
+++ b/products/workflows/backend/models/team_workflows_config.py
@@ -16,7 +16,7 @@ class TeamWorkflowsConfig(models.Model):
# Recipient-consent enforcement for open/click tracking on marketing emails (CNIL/ePrivacy).
# Enforced at send time in the Node worker; transactional emails are exempt.
email_tracking_consent_mode = models.CharField(
- max_length=16, choices=EMAIL_TRACKING_CONSENT_MODE_CHOICES, default=EmailTrackingConsentMode.OFF
+ max_length=16, choices=EMAIL_TRACKING_CONSENT_MODE_CHOICES, default=EmailTrackingConsentMode.OFF.value
)
# Staff-controlled kill switch: while set, the CDP email worker blocks all workflow email