From 3a9f69e37d774fe8dbc051ee91fba375a70ddfdb Mon Sep 17 00:00:00 2001 From: Andrew Calder Date: Mon, 30 Oct 2023 15:48:38 +1300 Subject: [PATCH] Replace content_json with content as per https://docs.wagtail.org/en/stable/releases/3.0.html#replaced-content-json-textfield-with-content-jsonfield-in-pagerevision --- core/signals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/signals.py b/core/signals.py index f93ea1d..f0e18f6 100644 --- a/core/signals.py +++ b/core/signals.py @@ -100,7 +100,7 @@ def pre_page_revision_save(sender, instance, **kwargs): # Replace content field setattr(mirror_page, field.name, clean_field) # To json again - instance.content_json = mirror_page.to_json() + instance.content = mirror_page.to_json() @receiver(post_save)