Hello. I have a model with an ImageField attribute. When that model is deleted the file is deleted as well but if the user uploads a another file, the original will never be deleted.
This is like http://code.djangoproject.com/ticket/6157 In the comments someone mentioned that this would be covered by the rewrite of the file saving backends but I don't see it anywhere so I think I'll have to write code for it. My question is, should this code reside in the overridden save() method like the code in the ticket, in a pre-save signal, or is there someplace better like a hook in the storage system? Thanks, André Cruz --~--~---------~--~----~------------~-------~--~----~ 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-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---