mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Make it easier to view agents in the admin page
This commit is contained in:
parent
e58bd0e485
commit
b86e68a29d
1 changed files with 11 additions and 1 deletions
|
@ -53,11 +53,20 @@ admin.site.register(ReflectiveQuestion)
|
|||
admin.site.register(UserSearchModelConfig)
|
||||
admin.site.register(TextToImageModelConfig)
|
||||
admin.site.register(ClientApplication)
|
||||
admin.site.register(Agent)
|
||||
admin.site.register(GithubConfig)
|
||||
admin.site.register(NotionConfig)
|
||||
|
||||
|
||||
@admin.register(Agent)
|
||||
class AgentAdmin(admin.ModelAdmin):
|
||||
list_display = (
|
||||
"id",
|
||||
"name",
|
||||
)
|
||||
search_fields = ("id", "name")
|
||||
ordering = ("-created_at",)
|
||||
|
||||
|
||||
@admin.register(Entry)
|
||||
class EntryAdmin(admin.ModelAdmin):
|
||||
list_display = (
|
||||
|
@ -85,6 +94,7 @@ class ConversationAdmin(admin.ModelAdmin):
|
|||
"client",
|
||||
)
|
||||
search_fields = ("id", "user__email", "user__username", "client__name")
|
||||
list_filter = ("agent",)
|
||||
ordering = ("-created_at",)
|
||||
|
||||
actions = ["export_selected_objects", "export_selected_minimal_objects"]
|
||||
|
|
Loading…
Reference in a new issue