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:
parent
7280eaf803
commit
16e494f508
2 changed files with 27 additions and 4 deletions
|
|
@ -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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue