

def get_valid_name(self, name):
    "\n        Returns a filename, based on the provided filename, that's suitable for\n        use in the target storage system. (slugify)\n        "
    s = super(SafeFilenameFileSystemStorage, self).get_valid_name(name)
    (filename, ext) = os.path.splitext(s)
    filename = slugify(filename)
    ext = slugify(ext)
    return ('%s.%s' % (filename, ext))

dataset/ETHPy150Open stefanfoulis/django-image-filer/image_filer/models/safe_file_storage.py SafeFilenameFileSystemStorage.get_valid_name/original