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