We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4df65cd commit 87be6eaCopy full SHA for 87be6ea
python.json
@@ -61,11 +61,7 @@
61
"prefix": "freenitsql",
62
"body": [
63
"import ormar",
64
- "from freenit.models.sql.base import (",
65
- " OrmarBaseModel,",
66
- " generate_optional,",
67
- " ormar_config,",
68
- ")",
+ "from freenit.models.sql.base import OrmarBaseModel, make_optional, ormar_config",
69
"",
70
71
"class ${1}(OrmarBaseModel):",
@@ -74,7 +70,12 @@
74
" id = ormar.Integer(primary_key=True)",
75
" ${0}",
76
72
77
- "${1}Optional = generate_optional(${1})"
73
+ "",
+ "class ${1}Optional(${1}):",
+ " pass",
78
+ "make_optional(${1}Optional)"
79
],
80
"description": "Freenit model using Ormar"
81
},
0 commit comments