use "cls"
This commit is contained in:
parent
e7030eb521
commit
ae3627cbe0
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class User(UserBase, table=True):
|
|||
|
||||
try:
|
||||
with Connection.session as db:
|
||||
user = User.from_orm(UserCreate(**kwargs))
|
||||
user = cls.from_orm(UserCreate(**kwargs))
|
||||
|
||||
db.add(user)
|
||||
db.commit()
|
||||
|
|
Loading…
Reference in a new issue