From 2e463bf74db292faf5827260f25df85a70e0601b Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Mon, 20 Nov 2023 11:06:47 +0100 Subject: [PATCH] Allow for request-free context objects for testing purposes (#659) --- djangocms_text_ckeditor/cms_plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangocms_text_ckeditor/cms_plugins.py b/djangocms_text_ckeditor/cms_plugins.py index 2d0bc5cbc..cba798eb5 100644 --- a/djangocms_text_ckeditor/cms_plugins.py +++ b/djangocms_text_ckeditor/cms_plugins.py @@ -551,7 +551,7 @@ def inline_editing_active(self, request): ) def render(self, context, instance, placeholder): - if self.inline_editing_active(context["request"]): + if self.inline_editing_active(context.get("request")): ckeditor_settings = self.get_editor_widget( context["request"], self.get_plugins(instance), instance ).get_ckeditor_settings(get_language().split("-")[0])