Skip to content

Commit

Permalink
Add wagtailcore.locale to default LOOKUP_FIELDS setting
Browse files Browse the repository at this point in the history
This is needed for 2.11 compatibility to avoid trying to reimport an existing locale
  • Loading branch information
jacobtoppm committed Jan 20, 2021
1 parent 37bad68 commit a1ea9ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wagtail_transfer/locators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1ea9ad

Please sign in to comment.