From e29b46b5172c4d4528a5bbb11bab0cfa63afd03c Mon Sep 17 00:00:00 2001 From: Sanjay B Date: Thu, 28 Oct 2021 20:39:04 +0530 Subject: [PATCH] add search_fields to Text admin --- app/text/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/text/admin.py b/app/text/admin.py index 6de2259..cd6728d 100644 --- a/app/text/admin.py +++ b/app/text/admin.py @@ -21,7 +21,7 @@ class TextAdmin(admin.ModelAdmin): ) list_editable = ['public', 'language', 'position'] list_filter = ['language', 'public'] - + search_fields = ['slug', 'title', 'byline'] def item(self, obj): return obj.data.get('item') def edit(self, obj):