thanks, i made it that, it is working fine now :)
def screenshot_path(instance = None, filename = None):
filepath = join("products", "images", instance.product.type,
instance.product.slug, "screenshot_" + str(instance.order) + ".gif")
if exists(join(MEDIA_ROOT,filepath)):
remove(
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 for your response
>
> from
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
django-use
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
def
4 matches
Mail list logo