Fixed broken channel save when description is too long

environments/review-docs-watch-ppxstk/deployments/4903
Agate 2020-04-22 08:05:45 +02:00
rodzic fdeb5ef8ae
commit 677a5dcf62
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6B501DFD73514E14
2 zmienionych plików z 0 dodań i 5 usunięć

Wyświetl plik

@ -203,8 +203,6 @@ class ChannelUpdateSerializer(serializers.Serializer):
description_obj = common_utils.attach_content(
obj.artist, "description", validated_data["description"]
)
if description_obj:
actor_update_fields.append(("summary", description_obj.rendered))
if "name" in validated_data:
actor_update_fields.append(("name", validated_data["name"]))

Wyświetl plik

@ -184,9 +184,6 @@ def test_channel_serializer_update(factories, mocker):
sorted(channel.artist.tagged_items.values_list("tag__name", flat=True))
== data["tags"]
)
assert channel.actor.summary == common_utils.render_html(
data["description"]["text"], "text/markdown"
)
assert channel.artist.description.text == data["description"]["text"]
assert channel.artist.description.content_type == "text/markdown"
assert channel.actor.name == data["name"]