More fixes list_display

This commit is contained in:
PCoder 2021-11-22 16:32:59 +05:30
parent 2f20672d40
commit c14cdb06ed

View file

@ -173,8 +173,8 @@ class PeopleRangeAdmin(admin.ModelAdmin):
class PeopleResourceAdmin(admin.ModelAdmin):
fields = ('person', 'resource', 'p_r_role')
list_display = ['person__full_name', 'resource__resource', 'role__role']
search_fields = ['person', 'resource', 'role']
list_display = ['person', 'resource', 'role']
search_fields = ['person__full_name', 'resource', 'role']
class SpeciesRangeAdmin(admin.ModelAdmin):