We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b00118a commit 5163efeCopy full SHA for 5163efe
api/serializers.py
@@ -655,6 +655,10 @@ def to_representation(self, instance):
655
656
class AnnotationSerializer(serializers.ModelSerializer):
657
class AnnotationFeedbackSerializer(serializers.ModelSerializer):
658
+ def validate_user_note(self, value):
659
+ # message_for_user can not be null, cast to blank.
660
+ return value or ""
661
+
662
def to_representation(self, instance):
663
ret = super().to_representation(instance)
664
# Ensure public_note and user_note will be None instead of blank
0 commit comments