From afceb5d24ba4ecc8e0958085b26e18b446a84a08 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Fri, 30 Dec 2016 09:28:57 +0100 Subject: [PATCH] [Backport] Fixing error for empty tags --- taiga/projects/tagging/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taiga/projects/tagging/fields.py b/taiga/projects/tagging/fields.py index 47553d8c..3a33ca87 100644 --- a/taiga/projects/tagging/fields.py +++ b/taiga/projects/tagging/fields.py @@ -43,7 +43,7 @@ class TagsAndTagsColorsField(serializers.WritableField): color = tag[1] if isinstance(name, str): - if color is None: + if color is None or color == "": continue if isinstance(color, str) and re.match('^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$', color):