Skip to content

Commit

Permalink
Add search to response Django admin
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthercox committed Jun 30, 2017
1 parent 6af0346 commit 82b086a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chatterbot/ext/django_chatterbot/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ class StatementAdmin(admin.ModelAdmin):


class ResponseAdmin(admin.ModelAdmin):
list_display = ('statement', 'occurrence', )
list_display = ('statement', 'response', 'occurrence', )
search_fields = ['statement__text', 'response__text']


class ConversationAdmin(admin.ModelAdmin):
Expand Down

0 comments on commit 82b086a

Please sign in to comment.