#11663: Delete orphaned replaced files
-------------------------------------+-------------------------------------
Reporter: | Owner: SmileyChris
SmileyChris | Status: closed
Type: | Component: File
Uncategorized | uploads/storage
Milestone: | Severity: Normal
Version: SVN | Keywords:
Resolution: wontfix | Has patch: 1
Triage Stage: Design | Needs tests: 0
decision needed | Easy pickings: 0
Needs documentation: 0 |
Patch needs improvement: 0 |
UI/UX: 0 |
-------------------------------------+-------------------------------------
Comment (by DanielClemente):
Django cannot know whether the file is used somewhere else, but sometimes
*the developer* does know this for certain and wants to delete old files.
There should be an easy way to do it (say, by toggling a parameter after
reading the documentation for some seconds) because there are enough
interested users who are currently spending hours with this issue.
The proposed half-baked workarounds are not trivial enough; none worked
for me at the first try.
I propose having FileField(upload_to='sw',replace=True), where
replace=False would be the default.
--
Ticket URL: <https://code.djangoproject.com/ticket/11663#comment:18>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en.