Skip to content

Commit

Permalink
Prevent Wagtail Transfer from following ContentType model
Browse files Browse the repository at this point in the history
  • Loading branch information
istride committed Jul 24, 2024
1 parent 21dd2be commit 07fab91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iogt/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 07fab91

Please sign in to comment.