Fixing error for empty tags
parent
1d3691469c
commit
27dead1383
|
@ -43,7 +43,7 @@ class TagsAndTagsColorsField(serializers.WritableField):
|
||||||
color = tag[1]
|
color = tag[1]
|
||||||
|
|
||||||
if isinstance(name, str):
|
if isinstance(name, str):
|
||||||
if color is None:
|
if color is None or color == "":
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if isinstance(color, str) and re.match('^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$', color):
|
if isinstance(color, str) and re.match('^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$', color):
|
||||||
|
|
Loading…
Reference in New Issue