Sunday, February 27, 2011

Re: ImageField not deleted while changing

As far as I know, you should implement the file deletion by yourself. You should code it on the Models delete function. preserving the default behaviour.
here is a link to some read: http://docs.djangoproject.com/en/dev/topics/db/models/#overriding-model-methods

How you do the file deletion is just pure python code further on.


On Sat, Feb 26, 2011 at 10:12 PM, galago <progreo@gmail.com> wrote:
d. Is it my fault or Django is designed not to delete it (if so, how to delete old fil

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment