Commit e112a806 by Marko Tibold

.to_native() now returns the file-name.

parent c35b9eb0
......@@ -952,10 +952,7 @@ class FileField(WritableField):
return data
def to_native(self, value):
"""
No need to return anything, the file can be accessed form its url.
"""
return
return value.name
class ImageField(FileField):
......
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