Skip to content

Commit

Permalink
Allow for request-free context objects for testing purposes (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Nov 20, 2023
1 parent e20b626 commit 2e463bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_text_ckeditor/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 2e463bf

Please sign in to comment.