mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-30 10:53:02 +01:00
Add an admin view for subscriptions
This commit is contained in:
parent
77626d28d1
commit
4aed6bd274
1 changed files with 12 additions and 1 deletions
|
@ -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 = (
|
||||
|
|
Loading…
Reference in a new issue