mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-05-31 07:16:23 +02:00
Merge pull request #633 from tobiasge/fix-540
Set filter_logic from YAML file
This commit is contained in:
commit
9a0e1115ed
@ -42,6 +42,9 @@ for cf_name, cf_details in customfields.items():
|
|||||||
if cf_details.get("type", False):
|
if cf_details.get("type", False):
|
||||||
custom_field.type = cf_details["type"]
|
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:
|
if cf_details.get("weight", -1) >= 0:
|
||||||
custom_field.weight = cf_details["weight"]
|
custom_field.weight = cf_details["weight"]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user