Commit fb0f7f8c authored by themylogin's avatar themylogin

Fix 'TypeError: descriptor 'lower' requires a 'str' object but received a 'unicode''

parent eddbd660
......@@ -178,7 +178,7 @@ class FileUploadField(fields.TextField):
return ('.' in filename and
filename.rsplit('.', 1)[1].lower() in
map(str.lower, self.allowed_extensions))
map(lambda x: x.lower(), self.allowed_extensions))
def pre_validate(self, form):
if (self.data and
......
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