Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4df65cd

Browse filesBrowse files
committed
Adopt to newer Freenit
1 parent f251426 commit 4df65cd
Copy full SHA for 4df65cd

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎python.json

Copy file name to clipboardExpand all lines: python.json
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@
5858
},
5959

6060
"ormar": {
61-
"prefix": "freenitormar",
61+
"prefix": "freenitsql",
6262
"body": [
6363
"import ormar",
64-
"from freenit.models.ormar.base import (",
64+
"from freenit.models.sql.base import (",
6565
" OrmarBaseModel,",
6666
" generate_optional,",
6767
" ormar_config,",
@@ -71,7 +71,7 @@
7171
"class ${1}(OrmarBaseModel):",
7272
" ormar_config = ormar_config.copy()",
7373
"",
74-
" id: int = ormar.Integer(primary_key=True)",
74+
" id = ormar.Integer(primary_key=True)",
7575
" ${0}",
7676
"",
7777
"${1}Optional = generate_optional(${1})"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.