class YourModelInline(admin.TabularInline):
model = YourModel
fields = ('fields', )
extra = 0 # looks neater without extras.
show_change_link = True # puts an icon on the left of each row to edit the row.
def has_change_permission(self, request, obj=None):
return False # MAKES EVERYTHING READONLY. AWESOME.
def has_delete_permission(self, request, obj=None):
return False # option
def has_add_permission(self, request, obj=None):
return False # option