Skip to content

Commit da9c871

Browse files
committed
add 'productBaseType' only if is supported
1 parent daef6b9 commit da9c871

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ayon_api/constants.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@
144144
"folderId",
145145
"active",
146146
"productType",
147-
"productBaseType",
148147
"data",
149148
"status",
150149
"tags",

ayon_api/server_api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,6 +1815,9 @@ def get_default_fields_for_type(self, entity_type: str) -> set[str]:
18151815

18161816
elif entity_type == "product":
18171817
entity_type_defaults = set(DEFAULT_PRODUCT_FIELDS)
1818+
maj_v, min_v, patch_v, _, _ = self.server_version_tuple
1819+
if self.is_product_base_type_supported():
1820+
entity_type_defaults.add("productBaseType")
18181821

18191822
elif entity_type == "version":
18201823
entity_type_defaults = set(DEFAULT_VERSION_FIELDS)

0 commit comments

Comments
 (0)