Commit e112a806 by Marko Tibold

.to_native() now returns the file-name.

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