Get a list parsed from newline-delimited entries from a textarea

def list_input(*args, **kwargs):
    '''
    Get a list parsed from newline-delimited entries from a textarea
    '''
    list_input = wtforms.TextAreaField(*args, **kwargs)
    list_input.input_type = 'list'
    return list_input