Fix NewlineListField displaying too many newlines
This commit is contained in:
parent
d83ee6daf3
commit
087b870718
@ -29,8 +29,10 @@ class NewlineListField(Field):
|
|||||||
widget = TextArea()
|
widget = TextArea()
|
||||||
|
|
||||||
def _value(self):
|
def _value(self):
|
||||||
if self.data:
|
if isinstance(self.data, list):
|
||||||
return "\n".join(self.data)
|
return '\n'.join(self.data)
|
||||||
|
elif self.data:
|
||||||
|
return self.data
|
||||||
else:
|
else:
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user