We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a13d50e commit 83ccd5cCopy full SHA for 83ccd5c
dojo/importers/options.py
@@ -123,9 +123,12 @@ def compress_options(self):
123
class_name = None
124
# Get the actual class if available
125
if len(id_list) > 0:
126
- class_name = item_type
+ id_type = type(id_list[0])
127
+ # Only define the class name if we are able to make a query on the object in decompression
128
+ if isinstance(id_type, int):
129
+ class_name = item_type if item_type is None else id_type
130
# Ensure we are not setting a class name as None
- if class_name is type(None):
131
+ if class_name is type(None) or class_name is None:
132
compressed_fields[field] = value
133
# Add the list to the dict
134
else:
0 commit comments