code: def _get_view_media(self):
          
          try:
              css = self.Media.css
          except AttributeError:
              css = {}
          try:
              js = self.Media.js
          except AttributeError:
              js = []
          return Media(css=css, js=js)
docs: Gather view-level media assets