I got a model where a "student" is able to enrol to a "course". The issue is that courses may have the same name(but different attendance, 'full time' or 'part time'). So as you can see in the image attached, I would like to know which course a student is enrolled to. Either inside the select box or next to it. I tried to use a list display but couldn't figure out how to use it.
Edit: the field that the type of attendance is stored is called 'attendance' and it's part of the class 'Course'.
admin.py
class StudentAdmin(admin.StackedInline):
model = Student
verbose_name_plural = 'students'
# Define a new User admin
class UserAdmin(UserAdmin):
inlines = (StudentAdmin, )
# Re-register UserAdmin
admin.site.unregister(User)
admin.site.register(User, UserAdmin)