1๐
โ
If you are making use of the built in Django admin, you can display more information on the list view (i.e. /admin/myapp/mymodel/
) by making use of the list_display
option of your ModelAdmin
For example, in the following list view (of the auth.User
model) you can see extra inforamtion (email, first name, last name, staff โฆ):
In your case, in your admin.py
:
class TraineeAdmin(admin.ModelAdmin):
list_display = ['firstName', 'lastName', 'educationBeginning', 'comment',]
admin.site.register(Trainee, TraineeAdmin)
๐คTimmy O'Mahony
Source:stackexchange.com