: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(tasks): allow editing invite code value in admin (#58009)
Joshua Snydera0724077d0e5
diff --git a/products/tasks/backend/admin.py b/products/tasks/backend/admin.pyindex c5a5ac48053d..34e632e69384 100644--- a/products/tasks/backend/admin.py+++ b/products/tasks/backend/admin.py@@ -79,9 +79,9 @@ class CodeInviteAdmin(admin.ModelAdmin):("Limits", {"fields": ("is_active", "max_redemptions", "redemption_count", "expires_at")}),("Metadata", {"fields": ("created_by", "created_at")}),)- # On add, omit code — it will be auto-generated on save+ # On add, code may be set manually or left blank to auto-generate on savereturn (- (None, {"fields": ("id", "description")}),+ (None, {"fields": ("id", "code", "description")}),("Limits", {"fields": ("is_active", "max_redemptions", "expires_at")}),("Metadata", {"fields": ("created_by",)}),)