Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
7288b5d2
Commit
7288b5d2
authored
Nov 07, 2013
by
Christos Stavrakakis
Browse files
cyclades: Fix bug in SeparatedValuesField
Return [] instead of None, if the field is null.
parent
6728ca2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/db/fields.py
View file @
7288b5d2
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment