old_contents: """Allow for central modification of storage."""
  from django.core.files.storage import default_storage
  
  storage = default_storage
  
  
  def inner():
      """Temp. Will be removed."""
      return ""
  
  
  def media_path(path):
      """Get the path to upload files to.
  
      This is to be used with upload_to.
      """
      def inner(instance, filename):
          return '/'.join(['path', filename])
      return inner
  
new_contents: """Allow for central modification of storage."""
  from django.core.files.storage import default_storage
  
  storage = default_storage
  
  
  def inner():
      """Temp. Will be removed."""
      return ""
  
  
  def media_path(path):
      """Get the path to upload files to.
  
      This is to be used with upload_to.
      """
      def inner(instance, filename):
          filename = filename.rsplit("/", 1)[1]
          return '/'.join([path, filename])
      return inner
  
subject: Fix filenames on storage