diff --git a/backend/core/serializers.py b/backend/core/serializers.py index a2bd48817..a0fdcc79d 100644 --- a/backend/core/serializers.py +++ b/backend/core/serializers.py @@ -504,7 +504,7 @@ def validate_score(self, value): if value is not None: if value < framework.min_score or value > framework.max_score: raise serializers.ValidationError( - f"Score must be between {framework.min_score} and {framework.max_score}" + {"score": f"Score must be between {framework.min_score} and {framework.max_score}"} ) return value