Skip to content

Commit

Permalink
feat: added django 4.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
mihalikv committed Aug 12, 2022
1 parent 2d1e507 commit 438a121
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changelog
1.0.1 (2022-07-09)
==================

* Added support for Django 4.0
* Added support for custom serializer
* Added serializer `django_cms` to be able to serialize `filer.Image`

Expand Down
4 changes: 2 additions & 2 deletions djangocms_transfer/datastructures.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from django.core.serializers import deserialize
from django.db import transaction
from django.utils.encoding import force_text
from django.utils.encoding import force_str
from django.utils.functional import cached_property

from cms.models import CMSPlugin
Expand All @@ -29,7 +29,7 @@ def model(self):
@cached_property
def deserialized_instance(self):
data = {
'model': force_text(self.model._meta),
'model': force_str(self.model._meta),
'fields': self.data,
}

Expand Down

0 comments on commit 438a121

Please sign in to comment.