.to_native() now returns the file-name.

This commit is contained in:
Marko Tibold 2012-11-14 21:40:52 +01:00
parent c35b9eb065
commit e112a806d8

View File

@ -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):