From 7121d4e4667c77aea6785b64001be949bee58a91 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Tue, 12 Aug 2025 13:56:43 -0400 Subject: [PATCH] fix: Correct serializer model reference. When linking a DRF serializer with a model, you need to link it to the model class not an instance of the model. The newer version of DRF tries to access the model_manager from the model here and runs into issues if it's not defined correctly. --- openedx/core/djangoapps/agreements/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/agreements/serializers.py b/openedx/core/djangoapps/agreements/serializers.py index 11e9d57f40..397a9ba61d 100644 --- a/openedx/core/djangoapps/agreements/serializers.py +++ b/openedx/core/djangoapps/agreements/serializers.py @@ -16,7 +16,7 @@ class IntegritySignatureSerializer(serializers.ModelSerializer): created_at = serializers.DateTimeField(source='created') class Meta: - model = IntegritySignature() + model = IntegritySignature fields = ('username', 'course_id', 'created_at')