Commit 7288b5d2 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Fix bug in SeparatedValuesField

Return [] instead of None, if the field is null.
parent 6728ca2a
......@@ -42,7 +42,7 @@ class SeparatedValuesField(models.TextField):
def to_python(self, value):
if not value:
return
return []
if isinstance(value, list):
return value
return value.split(self.delimiter)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment