diff --git a/src/khoj/database/admin.py b/src/khoj/database/admin.py index 260c4124..2fc5a1cd 100644 --- a/src/khoj/database/admin.py +++ b/src/khoj/database/admin.py @@ -49,7 +49,6 @@ admin.site.register(ProcessLock) admin.site.register(SpeechToTextModelOptions) admin.site.register(OpenAIProcessorConversationConfig) admin.site.register(SearchModelConfig) -admin.site.register(Subscription) admin.site.register(ReflectiveQuestion) admin.site.register(UserSearchModelConfig) admin.site.register(TextToImageModelConfig) @@ -85,6 +84,18 @@ class EntryAdmin(admin.ModelAdmin): ordering = ("-created_at",) +@admin.register(Subscription) +class KhojUserSubscription(admin.ModelAdmin): + list_display = ( + "id", + "user", + "type", + ) + + search_fields = ("id", "user__email", "user__username", "type") + list_filter = ("type",) + + @admin.register(Conversation) class ConversationAdmin(admin.ModelAdmin): list_display = (