I'm writing a django program for a school. I have a student model, a schoolclass model, and an enrolment model. The schoolclass has a ManyToMany relationship with student through the enrolment model. I have a TabularInline in the admin view for a student which shows which classes that student is enrolled in (and similarly, in a schoolclass, I can see which students are enrolled in the class). However, when I look at a student in admin, and see all of the enrolled classes, each class is shown as a drop-down of all possible classes (of which there are a large number), and similarly the schoolclass admin view shows all students in a dropdown for each enrolment.
Is it possible to merely show the enrolment in the inline, rather than be able to change it in the dropdown? I would still like to be able to delete it, and add new enrolments at the bottom, but not change existing enrolments. It would also be nice to have a link to the related object (e.g. click on a schoolclass when in student view takes me to that schoolclass info)