Skip to content

Commit

Permalink
feat(admin): allow to filter pluginconfigs on is_global from the plug…
Browse files Browse the repository at this point in the history
…in (#21272)
  • Loading branch information
xvello authored Apr 2, 2024
1 parent af9f952 commit 811ace4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion posthog/admin/admins/plugin_config_admin.py
Original file line number Diff line number Diff line change
@@ -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


Expand All @@ -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")
Expand Down

0 comments on commit 811ace4

Please sign in to comment.