@register.filter(name='str_to_list')
def str_to_list(info):
 print ast.literal_eval(info), type(ast.literal_eval(info))
 return ast.literal_eval(info)

@ register . filter ( name = 'str_to_list' ) def str_to_list ( info ) : print ast . literal_eval ( info ) , type ( ast . literal_eval ( info ) ) return ast . literal_eval ( info )
convert string to list .