fix repr() and str() on File-based objects

This commit is contained in:
Romain Bignon 2014-07-05 17:20:53 +02:00
commit ab7057b038
3 changed files with 7 additions and 6 deletions

View file

@ -39,12 +39,6 @@ class BaseImage(_BaseImage):
thumbnail = Field('Thumbnail of the image', _BaseImage)
data = BytesField('Data of image')
def __str__(self):
return self.url
def __repr__(self):
return '<Image url="%s">' % self.url
def __iscomplete__(self):
return self.data is not NotLoaded