  from django import forms
  from django.contrib import admin
  
  from .models import (
      Author, BinaryTree, CapoFamiglia, Chapter, ChildModel1, ChildModel2,
      Consigliere, EditablePKBook, ExtraTerrestrial, Fashionista, Holder,
      Holder2, Holder3, Holder4, Inner, Inner2, Inner3, Inner4Stacked,
 
</s> remove         media = self.formset.media + self.opts.media
 </s> add         media = self.opts.media + self.formset.media
from django.db import models
  from django import forms
  from django.contrib import admin
from django.db import models
  
  from .models import (
      Author, BinaryTree, CapoFamiglia, Chapter, ChildModel1, ChildModel2,
      Consigliere, EditablePKBook, ExtraTerrestrial, Fashionista, Holder,
      Holder2, Holder3, Holder4, Inner, Inner2, Inner3, Inner4Stacked,
keep add keep keep keep keep keep
 Fixed #28866 -- Made InlineAdminFormSet include InlineModelAdmin's Media before its formset's Media.

This provides better backwards compatibility following refs #28377. 
tests/admin_inlines/admin.py