Re: Getting id of item before it recorded (or something else to solve my problem)

2009-04-05 Thread Daniel Roseman
On Apr 5, 11:38 am, MiratCanBayrak wrote: > here, i have a function that used as a upload_to parameter in my > model. But i records my pic as screenshot_None.gif. Becouse id is > appearing when it is recorded. How can i record my images as > screenshot_id.gif ?? thanks

Re: Getting id of item before it recorded (or something else to solve my problem)

2009-04-05 Thread MiratCanBayrak
any ideas ? solutions? --~--~-~--~~~---~--~~ 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

Getting id of item before it recorded (or something else to solve my problem)

2009-04-05 Thread MiratCanBayrak
here, i have a function that used as a upload_to parameter in my model. But i records my pic as screenshot_None.gif. Becouse id is appearing when it is recorded. How can i record my images as screenshot_id.gif ?? thanks for your response from os.path import join, exists from os import remove