Compare commits

...

2 Commits

Author SHA1 Message Date
Starthur a983aafba2 Merge pull request 'Repare search' (#79) from Starthur/website:main into main
Reviewed-on: #79
2022-08-29 14:02:22 +02:00
Starthur cce09ed254
Repare search 2022-08-29 14:01:05 +02:00
1 changed files with 1 additions and 1 deletions

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