From 3e9b502b9bb1cb419cf5c56ef755264a9f4bb584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Hermida?= Date: Tue, 29 May 2018 13:07:30 +0200 Subject: [PATCH] Prevent history user error with id --- taiga/projects/history/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/taiga/projects/history/models.py b/taiga/projects/history/models.py index 6b55a833..f2560a6a 100644 --- a/taiga/projects/history/models.py +++ b/taiga/projects/history/models.py @@ -182,9 +182,11 @@ class HistoryEntry(models.Model): value_out = None if diff_in: - value_in = ", ".join([resolve_value("users", x) for x in diff_in if x]) + users_list = [resolve_value("users", x) for x in diff_in if x] + value_in = ", ".join(filter(None, users_list)) if diff_out: - value_out = ", ".join([resolve_value("users", x) for x in diff_out if x]) + users_list = [resolve_value("users", x) for x in diff_out if x] + value_out = ", ".join(filter(None, users_list)) value = [value_in, value_out] elif key == "points": points = {}