From d55ee21e8e86934fb10564f26499661dde496306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Hermida?= Date: Wed, 19 Sep 2018 11:15:59 +0200 Subject: [PATCH] Remove thumb_url in history attachment freeze data --- taiga/projects/history/freeze_impl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taiga/projects/history/freeze_impl.py b/taiga/projects/history/freeze_impl.py index d5292eaa..14091920 100644 --- a/taiga/projects/history/freeze_impl.py +++ b/taiga/projects/history/freeze_impl.py @@ -198,13 +198,13 @@ def _generic_extract(obj:object, fields:list, default=None) -> dict: @as_tuple def extract_attachments(obj) -> list: for attach in obj.attachments.all(): - thumb_url = get_timeline_image_thumbnail_url(attach) + # Force the creation of a thumbnail for the timeline + get_timeline_image_thumbnail_url(attach) yield {"id": attach.id, "filename": os.path.basename(attach.attached_file.name), "url": attach.attached_file.url, "attached_file": str(attach.attached_file), - "thumb_url": thumb_url, "is_deprecated": attach.is_deprecated, "description": attach.description, "order": attach.order}