From 510df01436dae4df191c957135a119e1fe0bdc08 Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Fri, 4 May 2018 21:11:02 +0200
Subject: [PATCH] Fix wrong lookup field in admin

---
 colleges/admin.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/colleges/admin.py b/colleges/admin.py
index 0f182f45a..8ff31a139 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
-- 
GitLab