use "cls"

This commit is contained in:
Jörn-Michael Miehe 2022-03-27 01:22:28 +00:00
parent e7030eb521
commit ae3627cbe0

View file

@ -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()