diff --git a/colleges/admin.py b/colleges/admin.py index 0f182f45acab68882237d3e132fca8bdf74b29dd..8ff31a1391e86982716866e6e4d0ea2ead5d25d2 100644 --- a/colleges/admin.py +++ b/colleges/admin.py @@ -12,7 +12,7 @@ def fellowhip_is_active(fellowship): class FellowshipAdmin(admin.ModelAdmin): - search_fields = ['contributor__last_name', 'contributor__first_name'] + search_fields = ['contributor__user__last_name', 'contributor__user__first_name'] list_display = ('__str__', 'guest', fellowhip_is_active, ) list_filter = ('guest',) fellowhip_is_active.boolean = True