From 1bdddeecb88f32ef937ecb8c2ba01ed8d7a04c1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viliam=20Mih=C3=A1lik?= Date: Fri, 12 Aug 2022 12:26:37 +0200 Subject: [PATCH] feat: added django 4.0 support --- djangocms_transfer/datastructures.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/djangocms_transfer/datastructures.py b/djangocms_transfer/datastructures.py index e248f4a..a6a0591 100644 --- a/djangocms_transfer/datastructures.py +++ b/djangocms_transfer/datastructures.py @@ -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 @@ -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, }