Skip to content

Commit d36560d

Browse files
committed
refactor: UsageKeyV2Serializer should be a BaseSerializer
...not a Serializer, as it overrides to_representation to a str rather than a dictionary. This type error arose during the djangorestframework-stubs upgrade in the previous commits.
1 parent 50944e9 commit d36560d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openedx/core/djangoapps/content_libraries/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class ContentLibraryCollectionUpdateSerializer(serializers.Serializer):
276276
description = serializers.CharField(allow_blank=True)
277277

278278

279-
class UsageKeyV2Serializer(serializers.Serializer):
279+
class UsageKeyV2Serializer(serializers.BaseSerializer):
280280
"""
281281
Serializes a UsageKeyV2.
282282
"""

0 commit comments

Comments
 (0)