I want to disable editing of ALL objects in a specific instance of TabularInline, while maintaining the ability to add and retaining the ability to edit the parent model.
I have a trivial setup:
class SuperviseeAdmin(admin.TabularInline): model = Supervisee class SupervisorAdmin(admin.ModelAdmin): inlines = [SuperviseeAdmin] admin.site.register(Supervisor, SupervisorAdmin)
I tried to add the has_change_permission function to SuperviseeAdmin , which unconditionally returns False , but this did not affect.
I tried to set actions = None in SuperviseeAdmin , but this did not affect.
What can I ignore to make this work?
source share