Allow to edit tags and set no color

remotes/origin/issue/4795/notification_even_they_are_disabled
David Barragán Merino 2016-08-23 13:58:58 +02:00
parent 534445b30c
commit 54baf7b4dc
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class EditTagTagValidator(ProjectTagValidator):
def validate_color(self, attrs, source): def validate_color(self, attrs, source):
color = attrs.get(source, None) 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.")) raise ValidationError(_("The color is not a valid HEX color."))
return attrs return attrs