From a1ea9addbaa2fa61722c1cf43dd54bdb1448ebdc Mon Sep 17 00:00:00 2001 From: Jacob Topp-Mugglestone <55137073+jacobtoppm@users.noreply.github.com> Date: Wed, 20 Jan 2021 14:46:40 +0000 Subject: [PATCH] Add wagtailcore.locale to default LOOKUP_FIELDS setting This is needed for 2.11 compatibility to avoid trying to reimport an existing locale --- wagtail_transfer/locators.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wagtail_transfer/locators.py b/wagtail_transfer/locators.py index 3430a61..7be2e91 100644 --- a/wagtail_transfer/locators.py +++ b/wagtail_transfer/locators.py @@ -21,6 +21,7 @@ # rather than by UUID mapping LOOKUP_FIELDS = { 'taggit.tag': ['slug'], # sensible default for taggit; can still be overridden + 'wagtailcore.locale': ["language_code"] } for model_label, fields in getattr(settings, 'WAGTAILTRANSFER_LOOKUP_FIELDS', {}).items(): LOOKUP_FIELDS[model_label.lower()] = fields