Fix HelpEntry model search field in the admin to search for topic name and the topic's text. Add missing search types to @search, aside from 'powers', which will need to be added once we figure out how powers will work.

This commit is contained in:
Greg Taylor 2009-01-24 03:50:37 +00:00
parent 7280eaf803
commit 16e494f508
2 changed files with 27 additions and 4 deletions

View file

@ -39,5 +39,5 @@ class HelpEntryAdmin(admin.ModelAdmin):
list_display = ('id', 'topicname', 'staff_only')
list_display_links = ('id', 'topicname')
list_filter = ('staff_only',)
search_fields = ['entrytext']
search_fields = ['topicname', 'entrytext']
admin.site.register(HelpEntry, HelpEntryAdmin)