From a7b22c1c679aa7e939ff595229cb2e9e8e806c72 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Fri, 2 Mar 2012 11:39:32 +0100 Subject: [PATCH] Fix incorrect field for searching in the admin interface This caused exceptions when searching on news articles. --- pgweb/news/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgweb/news/admin.py b/pgweb/news/admin.py index 84a332b2..c05bb107 100644 --- a/pgweb/news/admin.py +++ b/pgweb/news/admin.py @@ -6,6 +6,6 @@ from models import * class NewsArticleAdmin(MarkdownPreviewAdmin): list_display = ('title', 'org', 'date', 'approved', ) list_filter = ('approved', ) - search_fields = ('org', 'content', 'title', ) + search_fields = ('content', 'title', ) admin.site.register(NewsArticle, NewsArticleAdmin) -- 2.39.5