diff --git a/api/funkwhale_api/common/serializers.py b/api/funkwhale_api/common/serializers.py index f5565f133199e8f2ec7be8777032a65d4a5aaa10..76e698c5f993a036c7c4198911877a0ad2762234 100644 --- a/api/funkwhale_api/common/serializers.py +++ b/api/funkwhale_api/common/serializers.py @@ -320,7 +320,9 @@ class AttachmentSerializer(serializers.Serializer): class ContentSerializer(serializers.Serializer): - text = serializers.CharField(max_length=models.CONTENT_TEXT_MAX_LENGTH) + text = serializers.CharField( + max_length=models.CONTENT_TEXT_MAX_LENGTH, allow_null=True + ) content_type = serializers.ChoiceField(choices=models.CONTENT_TEXT_SUPPORTED_TYPES,) html = serializers.SerializerMethodField() diff --git a/changes/changelog.d/1161.bugfix b/changes/changelog.d/1161.bugfix new file mode 100644 index 0000000000000000000000000000000000000000..2c602fb42ad129b82025cd380b81ad851c7e9d4b --- /dev/null +++ b/changes/changelog.d/1161.bugfix @@ -0,0 +1 @@ +Fixed crash with null help text in admin (#1161)