Fix bug in UII field

Was displaying an empty list of UIIs as [''] in the textarea
This commit is contained in:
richard-dds
2018-08-16 13:24:11 -04:00
parent af96237231
commit 070fe823d3
3 changed files with 42 additions and 9 deletions

View File

@@ -32,6 +32,6 @@ class NewlineListField(Field):
def process_formdata(self, valuelist):
if valuelist:
self.data = [l.strip() for l in valuelist[0].split("\n")]
self.data = [l.strip() for l in valuelist[0].split("\n") if l]
else:
self.data = []