From c349165e22ad3c60420171d6efda7fb17231b7dd Mon Sep 17 00:00:00 2001 From: muhammadali286 Date: Fri, 1 Nov 2024 13:58:24 +0500 Subject: [PATCH] fix: Allowed blank value for comment to fix ACI LTI integration --- lti_consumer/lti_1p3/extensions/rest_framework/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lti_consumer/lti_1p3/extensions/rest_framework/serializers.py b/lti_consumer/lti_1p3/extensions/rest_framework/serializers.py index 88b42b6b..ee1c6567 100644 --- a/lti_consumer/lti_1p3/extensions/rest_framework/serializers.py +++ b/lti_consumer/lti_1p3/extensions/rest_framework/serializers.py @@ -121,7 +121,7 @@ class LtiAgsScoreSerializer(serializers.ModelSerializer): timestamp = serializers.DateTimeField(input_formats=[ISO_8601], format=ISO_8601, default_timezone=timezone.utc) scoreGiven = serializers.FloatField(source='score_given', required=False, allow_null=True, default=None) scoreMaximum = serializers.FloatField(source='score_maximum', required=False, allow_null=True, default=None) - comment = serializers.CharField(required=False, allow_null=True) + comment = serializers.CharField(required=False, allow_null=True, allow_blank=True) activityProgress = serializers.CharField(source='activity_progress') gradingProgress = serializers.CharField(source='grading_progress') userId = serializers.CharField(source='user_id')