It appears Django hides fields that are flagged Primary Key from being displayed/edited in the Django admin interface.
Let\'s say I\'d like to input data in which I
The answer with the highest votes didn't work for me. I needed a getter.
class StudentEnrollmentInline(admin.TabularInline): model = Enrollment readonly_fields=('student_enrollment_id',) def student_enrollment_id(self, obj): return obj.id
Using django 1.11