Repare search #79

Merged
Starthur merged 1 commits from Starthur/website:main into main 2022-08-29 14:02:23 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit cce09ed254 - Show all commits

View File

@ -10,7 +10,7 @@ class userprofile(admin.ModelAdmin):
#list display #list display
list_display = ['user', 'score', 'last_submission_date', 'campus'] list_display = ['user', 'score', 'last_submission_date', 'campus']
# search list # search list
search_fields = ['score', 'user__username', 'campus'] search_fields = ['score', 'user__username', 'campus__name']
@admin.register(Campus) @admin.register(Campus)
class campus(admin.ModelAdmin): class campus(admin.ModelAdmin):