Merge pull request 'Repare search' (#79) from Starthur/website:main into main

Reviewed-on: #79
This commit is contained in:
Starthur 2022-08-29 14:02:22 +02:00
commit a983aafba2
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):