Compare commits
2 Commits
c2e58c4f92
...
a983aafba2
Author | SHA1 | Date |
---|---|---|
Starthur | a983aafba2 | |
Starthur | 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