Nine CMS is a simple Django app to manage content. Users can create content and publish it to various paths.
BSD 3-Clause "New" or "Revised" License
42
stars
6
forks
source link
Image uploading path should not contain the group #65
Closed
Wtower closed 2 years ago
The image uploading path takes into account the image group field, if available, to build the upload path:
https://github.com/Wtower/django-ninecms/blob/v0.6.0/ninecms/utils/media.py#L25
The group field is optional, in contrast to the others, therefore it is likely to be omitted.
The group field in the path results in adding a further level to the directories, which get mixed up with the image styles.
Additionally, if the group changes, the image remains uploaded in an irrelevant path.
Remove the image group field from the image path.