Thank you very much,

this solved the problem
By the way, I use the official release 1.0

On 5 Септ, 21:13, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote:
> Hi nsash,
>
> >         def save(self, size=(80, 80)):
> >                 super(Artwork, self).save()
> >                 if self.file:
> >                         filename = self.file
> >                         image = Image.open(filename)
>
> >                         image.thumbnail(size, Image.ANTIALIAS)
> >                         image.save(filename)
>
> > the problem is that I get the error message
>
> > 'ImageFieldFile' object has no attribute '_mode'.
>
> What django version are you using? Try to change the line "filename =
> self.file" to "filename = self.file.path"... The way files are treated
> on django changed recently, search for the backward incompatibility
> changes to know more.
>
> Best regards!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to