Formatting
This commit is contained in:
parent
c5e012e521
commit
a6296e78df
@ -37,5 +37,7 @@ class CacheableForm(ValidatedForm):
|
||||
_data = super(FlaskForm, self).data
|
||||
for field in _data:
|
||||
if _data[field].__class__.__name__ == "list":
|
||||
_data[field] = [el for el in _data[field] if el not in self.EMPTY_LIST_FIELD]
|
||||
_data[field] = [
|
||||
el for el in _data[field] if el not in self.EMPTY_LIST_FIELD
|
||||
]
|
||||
return _data
|
||||
|
Loading…
x
Reference in New Issue
Block a user