From cce09ed2542758f07dada56687f5e36952e66452 Mon Sep 17 00:00:00 2001 From: Starthur Date: Mon, 29 Aug 2022 14:01:05 +0200 Subject: [PATCH] Repare search --- src/accounts/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/accounts/admin.py b/src/accounts/admin.py index 441b02c..21667fc 100644 --- a/src/accounts/admin.py +++ b/src/accounts/admin.py @@ -10,7 +10,7 @@ class userprofile(admin.ModelAdmin): #list display list_display = ['user', 'score', 'last_submission_date', 'campus'] # search list - search_fields = ['score', 'user__username', 'campus'] + search_fields = ['score', 'user__username', 'campus__name'] @admin.register(Campus) class campus(admin.ModelAdmin):