Commit c2e83003 authored by Yusei Tahara's avatar Yusei Tahara

Fixed my syntax mistake...


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18415 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9bb2c717
...@@ -122,7 +122,7 @@ class File(Document, CMFFile, ConversionCacheMixin): ...@@ -122,7 +122,7 @@ class File(Document, CMFFile, ConversionCacheMixin):
filename = getattr(file, 'filename', None) filename = getattr(file, 'filename', None)
# if file field is empty(no file is uploaded), # if file field is empty(no file is uploaded),
# filename is empty string. # filename is empty string.
if filename is not in (None, ''): if filename not in (None, ''):
kw['source_reference'] = filename kw['source_reference'] = filename
del kw['file'] del kw['file']
Base._edit(self, **kw) Base._edit(self, **kw)
......
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