Add temporal fix to history attachments changes rendering.
parent
a3cb48cf8e
commit
3fddbe2054
|
@ -171,8 +171,8 @@ class HistoryEntry(models.Model):
|
||||||
|
|
||||||
if changes:
|
if changes:
|
||||||
change = {
|
change = {
|
||||||
"filename": newattachs[aid]["filename"],
|
"filename": newattachs.get(aid, {}).get("filename", ""),
|
||||||
"url": newattachs[aid]["url"],
|
"url": newattachs.get(aid, {}).get("url", ""),
|
||||||
"changes": changes
|
"changes": changes
|
||||||
}
|
}
|
||||||
attachments["changed"].append(change)
|
attachments["changed"].append(change)
|
||||||
|
|
Loading…
Reference in New Issue