Formatting

This commit is contained in:
leigh-mil 2019-02-27 11:41:26 -05:00
parent c5e012e521
commit a6296e78df

View File

@ -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