Skip to content

Commit

Permalink
Fix bug related to Wagtail Transfer and content types
Browse files Browse the repository at this point in the history
Only match content types using the 'app_label' and 'model' fields, and do not
follow content types if they appear in other models.
  • Loading branch information
istride committed Aug 27, 2024
1 parent 8898d7e commit f8d2a63
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion iogt/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,15 @@
TRANSLATIONS_PROJECT_BASE_DIR = BASE_DIR

WAGTAILTRANSFER_LOOKUP_FIELDS = {
'contenttypes.contenttype': ['app_label', 'model'],
'iogt_users.user': ['username'],
'taggit.tag': ['slug'],
'wagtailcore.locale': ['language_code'],
'iogt_users.user': ['username'],
}
WAGTAILTRANSFER_NO_FOLLOW_MODELS = [
'contenttypes.contenttype',
'wagtailcore.page',
]
WAGTAILTRANSFER_SECRET_KEY = os.getenv('WAGTAILTRANSFER_SECRET_KEY')
WAGTAILTRANSFER_SHOW_ERROR_FOR_REFERENCED_PAGES = True
WAGTAILTRANSFER_SOURCES = {
Expand Down

0 comments on commit f8d2a63

Please sign in to comment.