  
  class InnerInline3(admin.StackedInline):
      model = Inner3
  
      class Media:
          js = ('my_awesome_inline_scripts.js',)
  
  
 
</s> remove         media = self.formset.media + self.opts.media
 </s> add         media = self.opts.media + self.formset.media
    formfield_overrides = {
        models.IntegerField: {'widget': CustomNumberWidget},
    }
  
  class InnerInline3(admin.StackedInline):
      model = Inner3
    formfield_overrides = {
        models.IntegerField: {'widget': CustomNumberWidget},
    }
  
      class Media:
          js = ('my_awesome_inline_scripts.js',)
  
  
keep 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