From 54baf7b4dcaac5f432515e3ce9357293860c0fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Tue, 23 Aug 2016 13:58:58 +0200 Subject: [PATCH] Allow to edit tags and set no color --- taiga/projects/tagging/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taiga/projects/tagging/validators.py b/taiga/projects/tagging/validators.py index 4de1f395..779c247c 100644 --- a/taiga/projects/tagging/validators.py +++ b/taiga/projects/tagging/validators.py @@ -77,7 +77,7 @@ class EditTagTagValidator(ProjectTagValidator): def validate_color(self, attrs, source): color = attrs.get(source, None) - if not re.match('^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$', color): + if color and not re.match('^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$', color): raise ValidationError(_("The color is not a valid HEX color.")) return attrs