Skip to content

Commit 318445b

Browse files
committed
生成的item 显式的指定table_name,防止自动提取时提取错误
1 parent d206268 commit 318445b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

feapder/templates/item_template.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ class ${item_name}Item(Item):
1616
command: feapder create -i ${table_name}.
1717
"""
1818

19+
__table_name__ = "${table_name}"
20+
1921
def __init__(self, *args, **kwargs):
2022
${propertys}

0 commit comments

Comments
 (0)