Add an admin view for subscriptions

This commit is contained in:
sabaimran 2024-05-07 11:48:52 -07:00
parent 77626d28d1
commit 4aed6bd274

View file

@ -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 = (