File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -814,11 +814,6 @@ def get_object_custom_fields(self, obj):
814814 key = grab (obj_custom_field , "key" )
815815 value = grab (obj_custom_field , "value" )
816816
817- if self .settings .custom_attribute_exclude is not None and \
818- key in self .settings .custom_attribute_exclude :
819- log .debug (f"Custom attribute '{ key } ' excluded from sync. Skipping" )
820- continue
821-
822817 if key is None or value is None :
823818 continue
824819
@@ -827,6 +822,11 @@ def get_object_custom_fields(self, obj):
827822 if label is None :
828823 continue
829824
825+ if self .settings .custom_attribute_exclude is not None and \
826+ label in self .settings .custom_attribute_exclude :
827+ log .debug (f"Custom attribute '{ label } ' excluded from sync. Skipping" )
828+ continue
829+
830830 custom_field = self .add_update_custom_field ({
831831 "name" : f"vcsa_{ label } " ,
832832 "label" : label ,
You can’t perform that action at this time.
0 commit comments