#15224: FileField object doesn't deletes the associated files
-------------------------------------------------------+--------------------
               Reporter:  Rohan Jain <m@…>             |         Owner:  crodjer
                 Status:  closed                       |     Milestone:  1.3    
              Component:  File uploads/storage         |       Version:  SVN    
             Resolution:  wontfix                      |      Keywords:         
           Triage Stage:  Unreviewed                   |     Has patch:  0      
    Needs documentation:  0                            |   Needs tests:  0      
Patch needs improvement:  0                            |  
-------------------------------------------------------+--------------------

Comment (by lrekucki):

 Replying to [comment:2 Rohan Jain <m@…>]:
 > Just saw this older ticket: http://code.djangoproject.com/ticket/6456,
 it says that this was done intentionally.[[BR]]
 > So how can someone deal with tests which involve file fields. One can't
 let the tests create so many files in the directory on each test run.

 You can create a temporary directory during setUp of your test case and
 make sure your storage backend uses it to save files, then delete the
 directory in tearDown. If you need more details, feel free to ask on
 [http://groups.google.com/group/django-users django-users].

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15224#comment:3>
Django <http://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.

Reply via email to