more student data shown in admin
This commit is contained in:
parent
13cdd7a53f
commit
f7c25363f1
@ -116,7 +116,8 @@ class StudentYearFilter(admin.SimpleListFilter):
|
|||||||
|
|
||||||
|
|
||||||
class StudentModelAdmin(admin.ModelAdmin):
|
class StudentModelAdmin(admin.ModelAdmin):
|
||||||
list_display = ('identifier', '__str__', 'grade')
|
list_display = ('identifier', '__str__', 'score_first',
|
||||||
|
'score_second', 'school_name', 'school_town', 'grade')
|
||||||
search_fields = ('identifier', 'name', 'surname', 'grade')
|
search_fields = ('identifier', 'name', 'surname', 'grade')
|
||||||
ordering = ('-identifier',)
|
ordering = ('-identifier',)
|
||||||
list_filter = (StudentYearFilter,)
|
list_filter = (StudentYearFilter,)
|
||||||
|
Loading…
Reference in New Issue
Block a user