mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 14:50:56 +08:00
v1 vsersion
This commit is contained in:
9
lib/template/filters.py
Normal file
9
lib/template/filters.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- coding:utf-8 -*-
|
||||
|
||||
|
||||
def convert_to_list(v):
|
||||
if isinstance(v, list):
|
||||
return v
|
||||
if isinstance(v, tuple):
|
||||
return list(v)
|
||||
return [v, ]
|
Reference in New Issue
Block a user