So I added a custom storage class to an ImageField which overwrites
files with the same name.

I noticed while testing that I can add many records all referencing
the same single image, which gets overwritten with each new record
created.  What's strange/interesting is... the image file doesn't get
deleted until I remove the last record referencing the file!

Is django really this smart?  :)

Storage class:
http://www.djangosnippets.org/snippets/976/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to