django-cms / djangocms-transfer

django CMS Transfer allows you to export and import plugins.
https://www.django-cms.org
Other
19 stars 19 forks source link

created custom django_cms serializer to be able to handle django cms … #24

Open viliammihalik opened 1 year ago

viliammihalik commented 1 year ago

…filer images

Description

Added ability to define own serializer based on https://github.com/django-cms/djangocms-transfer/pull/14 and created serializers folder where is created new django_cms serializer which is able to transfer djangocms filer image as base64 string.

Checklist

codecov[bot] commented 1 year ago

Codecov Report

Merging #24 (438a121) into master (703aaa0) will decrease coverage by 3.62%. The diff coverage is 7.01%.

@@            Coverage Diff             @@
##           master      #24      +/-   ##
==========================================
- Coverage   31.83%   28.20%   -3.63%     
==========================================
  Files          11       12       +1     
  Lines         377      429      +52     
  Branches       63       70       +7     
==========================================
+ Hits          120      121       +1     
- Misses        257      308      +51     
Impacted Files Coverage Δ
djangocms_transfer/serializers/django_cms.py 0.00% <0.00%> (ø)
djangocms_transfer/utils.py 48.14% <33.33%> (-1.86%) :arrow_down:
djangocms_transfer/helpers.py 17.85% <50.00%> (ø)
djangocms_transfer/datastructures.py 50.00% <66.66%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

mihalikv commented 1 year ago

@robert-foreflight Can you check this out?

wfehr commented 2 months ago

This might be resolved with the changes from #20. With now released version 1.0.2 you can define custom serializer handling which also enables custom processing for filer-images, e.g. ignoring them, creating a default image on import or transferring images with base64.