Repare search

This commit is contained in:
Starthur 2022-08-29 14:01:05 +02:00
parent c2e58c4f92
commit cce09ed254
Signed by: Starthur
GPG Key ID: 68AD34A2CF658E32
1 changed files with 1 additions and 1 deletions

View File

@ -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):