Fix RoleAdmin.search_fields to search for the actual contents on
related models instead of the models themselves - Legacy-Id: 3889
This commit is contained in:
parent
8cff77e947
commit
29df970cbb
|
@ -101,7 +101,7 @@ admin.site.register(GroupURL)
|
|||
class RoleAdmin(admin.ModelAdmin):
|
||||
list_display = ["name", "person", "email", "group"]
|
||||
list_display_links = ["name"]
|
||||
search_fields = ["name", "person", "email"]
|
||||
search_fields = ["name__name", "person__name", "email__address"]
|
||||
list_filter = ["name"]
|
||||
ordering = ["id"]
|
||||
raw_id_fields = ["email", "person", "group"]
|
||||
|
|
Loading…
Reference in a new issue