          return self.formset.non_form_errors
  
      @property
      def media(self):
          media = self.formset.media + self.opts.media
          for fs in self:
              media = media + fs.media
          return media
  
  
 
</s>
        media = self.opts.media + self.formset.media
          return self.formset.non_form_errors
  
      @property
      def media(self):
        media = self.opts.media + self.formset.media
          for fs in self:
              media = media + fs.media
          return media
  
  
keep keep keep keep replace 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.
django/contrib/admin/helpers.py