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