[backport] Add temporal fix to history attachments changes rendering.

remotes/origin/enhancement/email-actions
Andrey Antukh 2014-10-15 20:17:36 +02:00
parent eb8638fdda
commit fa05bf8c74
1 changed files with 2 additions and 2 deletions

View File

@ -171,8 +171,8 @@ class HistoryEntry(models.Model):
if changes:
change = {
"filename": newattachs[aid]["filename"],
"url": newattachs[aid]["url"],
"filename": newattachs.get(aid, {}).get("filename", ""),
"url": newattachs.get(aid, {}).get("url", ""),
"changes": changes
}
attachments["changed"].append(change)