From 811ace4e1fc7f43cc8afcd45800f93423df7ba55 Mon Sep 17 00:00:00 2001 From: Xavier Vello Date: Tue, 2 Apr 2024 16:15:48 +0200 Subject: [PATCH] feat(admin): allow to filter pluginconfigs on is_global from the plugin (#21272) --- posthog/admin/admins/plugin_config_admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/posthog/admin/admins/plugin_config_admin.py b/posthog/admin/admins/plugin_config_admin.py index 51e54c9237c28..760e5ca5c487d 100644 --- a/posthog/admin/admins/plugin_config_admin.py +++ b/posthog/admin/admins/plugin_config_admin.py @@ -1,7 +1,7 @@ from django.contrib import admin from django.utils.html import format_html -from posthog.admin.inlines.plugin_attachment_inline import PluginAttachmentInline +from posthog.admin.inlines.plugin_attachment_inline import PluginAttachmentInline from posthog.models import PluginConfig @@ -14,6 +14,7 @@ class PluginConfigAdmin(admin.ModelAdmin): ("deleted", admin.BooleanFieldListFilter), ("updated_at", admin.DateFieldListFilter), ("plugin", admin.RelatedOnlyFieldListFilter), + "plugin__is_global", ) list_select_related = ("team", "plugin") search_fields = ("team__name", "team__organization__name", "plugin__name")