projects
/
pgweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68ce4ad
)
Fix incorrect field for searching in the admin interface
author
Magnus Hagander
<magnus@hagander.net>
Fri, 2 Mar 2012 10:39:32 +0000
(11:39 +0100)
committer
Magnus Hagander
<magnus@hagander.net>
Fri, 2 Mar 2012 10:40:22 +0000
(11:40 +0100)
This caused exceptions when searching on news articles.
pgweb/news/admin.py
patch
|
blob
|
blame
|
history
diff --git
a/pgweb/news/admin.py
b/pgweb/news/admin.py
index 84a332b2e0e079fb836d422ffaa405721fad6b9c..c05bb1077db01c934f71c109197a68e50a01fec1 100644
(file)
--- 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)