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 7739370 commit 7cd2322Copy full SHA for 7cd2322
pulp_python/app/serializers.py
@@ -457,6 +457,13 @@ def to_internal_value(self, data):
457
"""Converts set to list."""
458
return list(super().to_internal_value(data))
459
460
+ def to_representation(self, value):
461
+ """Converts set to list for JSON serialization."""
462
+ result = super().to_representation(value)
463
+ if isinstance(result, set):
464
+ result = list(result)
465
+ return result
466
+
467
468
class PythonRemoteSerializer(core_serializers.RemoteSerializer):
469
"""
0 commit comments