1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-04-11 11:32:02 +02:00

Fix an edge case with old values containing None for coma separated lists

This commit is contained in:
kaiyou 2018-10-16 20:47:38 +02:00
parent f647d1a0bc
commit e784556330

View File

@ -64,7 +64,7 @@ class CommaSeparatedList(db.TypeDecorator):
return ",".join(value)
def process_result_value(self, value, dialect):
return filter(bool, value.split(","))
return filter(bool, value.split(",")) if value else []
# Many-to-many association table for domain managers