Symlink link to media files is deleted after calling of delete method of ImageField if value of it field is None.
|Reported by:||piterimov@…||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||no|
If media folder for media files is symlink then after calling of delete method of ImageField model's field this symbolic link has been deleted if value of this field is None (i. e. value of image_field.name is empty).
This was found for django 1.3.1 (but maybe and is for others). This is happening for ImageField only. FileField works good.
Change History (8)
comment:1 Changed 2 years ago by anonymous
- Component changed from Uncategorized to File uploads/storage
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 Changed 2 years ago by aaugustin
- Resolution set to worksforme
- Status changed from new to closed
comment:3 Changed 2 years ago by anonymous
- Resolution worksforme deleted
- Status changed from closed to reopened
Changed 2 years ago by apiterimov
comment:5 Changed 2 years ago by ramiro
- Needs tests set
- Triage Stage changed from Unreviewed to Accepted