Closed ekersten closed 3 years ago
I've also changed the upload path to svg
to make it cleaner.
Printing the file_content
on a template still requires the safe
filter but I find that acceptable
Hi @ekersten
Thanks for this pull request.
Some comments :
upload_to
value should be filled in from Django's settings.py. Something like SVG_FOLDER_UPLOAD_TO = 'svg'
(with 'media' as default value if it's not set)upload_to
break updates. If someone wanted to update this package (mix between files/folders)What do you think?
Sounds reasonable.
I've created a setting called WAGTAILSVG_UPLOAD_FOLDER
and it defaults to media
Merged here :
wagtailsvg==0.0.19
I updated the README and cleaned up the code a bit.
Thanks @ekersten
file_content was trying to fetch the wrong file path. This fixes that.