Add list_display and search_fields to PeopleResourceAdmin
This commit is contained in:
parent
68de8f8835
commit
65e1ce8b3d
1 changed files with 3 additions and 1 deletions
|
@ -172,7 +172,9 @@ class PeopleRangeAdmin(admin.ModelAdmin):
|
|||
|
||||
|
||||
class PeopleResourceAdmin(admin.ModelAdmin):
|
||||
fields = ('person', 'resource', 'p_r_role')
|
||||
fields = ('person', 'resource', 'p_r_role')
|
||||
list_display = ['person__full_name', 'resource__resource', 'role__role']
|
||||
search_fields = ['person__full_name', 'resource__resource', 'role__role']
|
||||
|
||||
|
||||
class SpeciesRangeAdmin(admin.ModelAdmin):
|
||||
|
|
Loading…
Reference in a new issue