Unverified Commit e12f44d0 authored by Agate's avatar Agate 💬
Browse files

Fix #1161: crash with null help text in admin

parent 2999437b
......@@ -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()
......
Fixed crash with null help text in admin (#1161)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment