[Django]-Django inline – allow adding disable editing

0👍

You have to use the custom version InlineAdmin which uses the custom version of below classes

  • InlineModelAdmin
  • BaseInlineFormSet

You can add your own add_view and change_view on the custom version of InlineModelAdmin to

  • detect the owner of the record(to allow the edit)
  • display the time field

You can enhance the BaseInlineFormSet to control all the runtime aspects

Leave a comment