Repare search
This commit is contained in:
parent
c2e58c4f92
commit
cce09ed254
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue