On Oct 31, 2006, at 23:13, medhat wrote:

>
> I was trying to create a thumbnail from an ImageField when the object
> is saved. I tried different things but none of them worked the way I
> wanted. Then I thought of using the post_save signal to do it only to
> discover that this signal is sent after the object itself is saved but
> before all the uploaded files in FileField-derived fields are saved.

I do something similar - I replace the uploaded file with a thumbnail  
of itself. The code I use is here:

http://jerakeen.org/svn/tomi/Projects/mydjango/cougar/utility.py

However, I wrote it a while ago, and haven't played with that part in  
a bit, so I can't tell you how it works.. :-)

tom


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to