Skip to content

Commit

Permalink
Merge pull request #633 from tobiasge/fix-540
Browse files Browse the repository at this point in the history
Set filter_logic from YAML file
  • Loading branch information
tobiasge authored Oct 25, 2021
2 parents a206ad6 + 2b4c058 commit 9a0e111
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions startup_scripts/020_custom_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ def get_class_for_class_path(class_path):
if cf_details.get("type", False):
custom_field.type = cf_details["type"]

if cf_details.get("filter_logic", False):
custom_field.filter_logic = cf_details["filter_logic"]

if cf_details.get("weight", -1) >= 0:
custom_field.weight = cf_details["weight"]

Expand Down

0 comments on commit 9a0e111

Please sign in to comment.