#17812: Symlink link to media files is deleted after calling of delete method of
ImageField if value of it field is None.
-------------------------------------+-------------------------------------
     Reporter:  piterimov@…          |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  File                 |                  Version:  1.3
  uploads/storage                    |               Resolution:
     Severity:  Normal               |  worksforme
     Keywords:                       |             Triage Stage:
    Has patch:  0                    |  Unreviewed
  Needs tests:  0                    |      Needs documentation:  0
Easy pickings:  0                    |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by aaugustin):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 Here's what I understand from your report (I see you aren't a native
 speaker):

 - `settings.MEDIA_ROOT` is a symlink — for instance, `/var/www/media ->
 /mnt/storage/media`
 - you save a model that has an `ImageField`, without providing any value —
 `instance = MyModel.objects.get(pk=1); instance.my_image = None;
 instance.save()`
 - the symlink gets deleted

 I tried that, and I can't reproduce the problem. To be honest, it sounds
 extremely unlikely that Django would delete a directory or a symlink like
 that.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17812#comment:2>
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to