> I think to put the id of the object on the "upload_to" keyword but I > don't know if this is possible. > Is there a way to ensure the filename is unique for that model?
Actually, Django already takes care of this for you. It adds underscore(s) to your upload file's name until the filename is unique in the upload_to directory. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---