fix: repair search of course creator statuses in django admin
It was broken because "organizations" was erronously included in the `search_fields` admin option. Many-to-many fields may not be used for search. TNL-8722
This commit is contained in:
committed by
Kyle McCormick
parent
f0239b724e
commit
d701b423f1
@@ -82,7 +82,7 @@ class CourseCreatorAdmin(admin.ModelAdmin):
|
||||
# Fields that filtering support
|
||||
list_filter = ['state', 'state_changed']
|
||||
# Fields that search supports.
|
||||
search_fields = ['user__username', 'user__email', 'state', 'note', 'organizations']
|
||||
search_fields = ['user__username', 'user__email', 'state', 'note']
|
||||
# Turn off the action bar (we have no bulk actions)
|
||||
actions = None
|
||||
form = CourseCreatorForm
|
||||
|
||||
Reference in New Issue
Block a user