Skip to content

Commit

Permalink
Merge pull request #71 from wagtail/locale-lookup
Browse files Browse the repository at this point in the history
Add wagtailcore.locale to default LOOKUP_FIELDS setting
  • Loading branch information
jacobtoppm committed Jan 20, 2021
2 parents 37bad68 + a1ea9ad commit ad146ea
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 ad146ea

Please sign in to comment.