From fa05bf8c742dcbc4432204a22831bddeedaaa484 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 15 Oct 2014 20:17:36 +0200 Subject: [PATCH] [backport] Add temporal fix to history attachments changes rendering. --- taiga/projects/history/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taiga/projects/history/models.py b/taiga/projects/history/models.py index 809cae1c..ab58b312 100644 --- a/taiga/projects/history/models.py +++ b/taiga/projects/history/models.py @@ -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)