Commit 305c7937 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[deprecation] fix 3.9 deprecation warning

parent 8a531340c3ef
......@@ -150,7 +150,7 @@ class BytesFileSystemStorage(Storage):
# PIL processing that use filename extension to detect content-type, as
# well as providing more understandable file names on the fs.
basename = [str(entity.eid), attr]
name = entity.attr_metadata(attr, 'name')
name = entity.cw_attr_metadata(attr, 'name')
if name is not None:
basename.append(name.encode(self.fsencoding))
fspath = uniquify_path(self.default_directory, '_'.join(basename))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment