Re: ImageField/FileField in M/R

2006-04-25 Thread Nebojsa Djordjevic
Denis 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 You c

Re: ImageField/FileField in M/R

2006-04-20 Thread Clint Ecker
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 metho

Re: ImageField/FileField in M/R

2006-04-20 Thread Denis
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

Re: ImageField/FileField in M/R

2006-04-20 Thread 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: HiIt looks like old files aren't being removed after object change.That is, if i change the

ImageField/FileField in M/R

2006-04-20 Thread Denis
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_t