K
sqlalchemy.exc.InvalidRequestError: Instance '<Device at 0x10808f3d0>' is not persistent within this Session
Size: a a a
K
sqlalchemy.exc.InvalidRequestError: Instance '<Device at 0x10808f3d0>' is not persistent within this Session
T
K
user = crud.user.get_by_email(db, email=user_in.email)
if user:
raise HTTPException(
status_code=400,
detail="The user with this username already exists in the system.",
)
user = crud.user.create(db, obj_in=user_in)
return userK
V
K
T
user = crud.user.get_by_email(db, email=user_in.email)
if user:
raise HTTPException(
status_code=400,
detail="The user with this username already exists in the system.",
)
user = crud.user.create(db, obj_in=user_in)
return userD
D
D
ЛЛ
K
D
ЛЛ
D
ЛЛ
D
ЛЛ
D
D