[Backport] Fixing webhooks description_diff

remotes/origin/issue/4795/notification_even_they_are_disabled
Alejandro Alonso 2016-07-22 09:33:24 +02:00
parent 4279ea9ec0
commit 3c39c92e82
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class HistoryDiffField(serializers.Field):
ret = {} ret = {}
for key, val in value.items(): for key, val in value.items():
if key in ["attachments", "custom_attributes"]: if key in ["attachments", "custom_attributes", "description_diff"]:
ret[key] = val ret[key] = val
elif key == "points": elif key == "points":
ret[key] = {k: {"from": v[0], "to": v[1]} for k, v in val.items()} ret[key] = {k: {"from": v[0], "to": v[1]} for k, v in val.items()}