Skip to content

Commit ec96199

Browse files
committed
Cast public_note to blank
1 parent 9e359af commit ec96199

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/serializers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,10 @@ def to_representation(self, instance):
723723

724724
class AnnotationSerializer(serializers.ModelSerializer):
725725
class AnnotationFeedbackSerializer(serializers.ModelSerializer):
726+
def validate_public_note(self, value):
727+
# edited_user_notes can not be null, cast to blank.
728+
return value or ""
729+
726730
def validate_internal_note(self, value):
727731
# tiger_certainty_notes can not be null, cast to blank.
728732
return value or ""

0 commit comments

Comments
 (0)