Skip to content

Commit

Permalink
refactor: UsageKeyV2Serializer should be a BaseSerializer
Browse files Browse the repository at this point in the history
...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.
  • Loading branch information
kdmccormick committed Jan 2, 2025
1 parent ac6d1f2 commit 33174db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openedx/core/djangoapps/content_libraries/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ class ContentLibraryCollectionUpdateSerializer(serializers.Serializer):
description = serializers.CharField(allow_blank=True)


class UsageKeyV2Serializer(serializers.Serializer):
class UsageKeyV2Serializer(serializers.BaseSerializer):
"""
Serializes a UsageKeyV2.
"""
Expand Down

0 comments on commit 33174db

Please sign in to comment.