From 07fab91b83cc92d97138be9479922d133cb7e54f Mon Sep 17 00:00:00 2001 From: Ian Stride Date: Mon, 3 Jun 2024 17:29:22 +0100 Subject: [PATCH] Prevent Wagtail Transfer from following ContentType model --- iogt/settings/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iogt/settings/base.py b/iogt/settings/base.py index e0fc4d9c3..dbddb05b8 100644 --- a/iogt/settings/base.py +++ b/iogt/settings/base.py @@ -446,10 +446,12 @@ TRANSLATIONS_PROJECT_BASE_DIR = BASE_DIR WAGTAILTRANSFER_LOOKUP_FIELDS = { + "contenttypes.contenttype": ["app_label", "model"], 'taggit.tag': ['slug'], 'wagtailcore.locale': ['language_code'], 'iogt_users.user': ['username'], } +WAGTAILTRANSFER_NO_FOLLOW_MODELS = ["wagtailcore.page", "contenttypes.contenttype"] WAGTAILTRANSFER_SECRET_KEY = os.getenv('WAGTAILTRANSFER_SECRET_KEY') WAGTAILTRANSFER_SHOW_ERROR_FOR_REFERENCED_PAGES = True WAGTAILTRANSFER_SOURCES = {