Re: _post_save() problem with an empty file field

2006-05-04 Thread Adrian Holovaty
On 5/4/06, sam <[EMAIL PROTECTED]> wrote: > Django version 0.91. I was trying to generate a thumbnail for an image > upload. The image is a FileField. I want to generate thumbnail in > _post_save() of the model object. The code is something like the > following: > > class Item(meta.Model): > .

_post_save() problem with an empty file field

2006-05-04 Thread sam
Django version 0.91. I was trying to generate a thumbnail for an image upload. The image is a FileField. I want to generate thumbnail in _post_save() of the model object. The code is something like the following: class Item(meta.Model): ... file = meta.FileField(upload_to="files",blank=Tr