: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
fix(phai): use autocomplete widget for task FK in conversation admin (#66942)
Paul D'Ambra33e019bdbe94
diff --git a/posthog/admin/admins/conversation_admin.py b/posthog/admin/admins/conversation_admin.pyindex 130657d0cf11..e717294cc45a 100644--- a/posthog/admin/admins/conversation_admin.py+++ b/posthog/admin/admins/conversation_admin.py@@ -14,6 +14,10 @@ class ConversationAdmin(admin.ModelAdmin):list_filter = ("status", "type")search_fields = ("id", "team__name", "user__email")autocomplete_fields = ("team", "user")+ # `task` uses raw_id rather than autocomplete: its admin lives in the tasks product and+ # isn't guaranteed registered when ConversationAdmin's system checks run (admin.E039).+ # raw_id_fields needs no registered target admin and still avoids the full-table <select>.+ raw_id_fields = ("task",)ordering = ("-updated_at",)actions = ["compact_checkpoints"]