This was discussed 8 months ago.  This is the ticket: http://code.djangoproject.com/ticket/369.  Feel free to add anything you think relevant.

On 4/20/06, Denis <[EMAIL PROTECTED]> wrote:

If so, then it (the file) shouldn't be deleted when you delete()
the object? Also, M/R branch seems has no methods like
_pre_save/_post_save,
instead you can subclass save/delete methods. There are some references
in db.models.signals, dont know how to use them though

Clint Ecker написав:
> This is correct.  I believe the general consensus is that the developer
> should take care of file destruction on their own.  Perhaps in a _pre_save
> method?
>
> Clint
>
> On 4/20/06, Denis <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi
> >
> > It looks like old files aren't being removed after object change.
> > That is, if i change the object like the 1 below and upload new file
> > via admin interface, old file remains in the directory, though nothing
> > refers to it :-/
> >
> > class Picture( models.Model):
> >     fullsize = models.ImageField(upload_to='%Y/%m/%d')
> >     ...
> >
> >
> > >
> >
>
>
> --
> ---
> Clint Ecker
> [EMAIL PROTECTED]
> http://phaedo.cx
>

---
Clint Ecker
[EMAIL PROTECTED]
http://phaedo.cx
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to