Re: Image upload - self.image not defined in save method

2007-02-15 Thread Nebojša Đorđević
* Dirk Eschler wrote, On 13.02.2007 11:12: > Hello, > > i use ImageWithThumbnailField to upload screenhots. In the save method i want > to set some additional model fields, like filesize and width/height of the > uploaded image. The problem is, that self.image isn't defined at this point, >

Re: Image upload - self.image not defined in save method

2007-02-13 Thread Brice Carpentier
On 2/13/07, Dirk Eschler <[EMAIL PROTECTED]> wrote: > i use ImageWithThumbnailField to upload screenhots. In the save method i want > to set some additional model fields, like filesize and width/height of the > uploaded image. The problem is, that self.image isn't defined at this point, > the

Image upload - self.image not defined in save method

2007-02-13 Thread Dirk Eschler
Hello, i use ImageWithThumbnailField to upload screenhots. In the save method i want to set some additional model fields, like filesize and width/height of the uploaded image. The problem is, that self.image isn't defined at this point, the same entry has to be saved twice in the admin.